I am just wondering why I am getting the following error:
Type '{ key: string; type: string; templateOptions: { label: string; };
}[]' is missing the following properties from type 'CoreForm1': key,
typets(2739)
here is the code for my CoreForm1:
export interface CoreForm1 {
key: string;
type: string;
templateOptions?: {
label?: string;
};
}
and here is my form:
[
{
"key": "Input",
"type": "input",
"templateOptions": {
"label": "Form 1"
}
}
]
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/angular/2b65cbbe-0e5c-44b5-9a1d-d404a9d4629an%40googlegroups.com.