Angular 5 - "Cannot read property of undefined"

techSpecMeta: {};

In Type script this means to declare a property of type {} with no value initialized. It is the same as:

techSpecMeta: Object;

You should instead be doing

techSpecMeta = {};

To make the binding work, you will need the property make as well.

techSpecMeta = {make: null};

Ideally you would create a class/interface for TechSpecMeta

class TechSpecMeta {
    make: null;
    anotherProperty: null;
}

and use it in your component

techSpecMeta = new TechSpecMeta();

please try to intialize it as below description

public techSpecMeta = <any> {};

Tags:

Angular