TypescriptBuild:Type '{ Id: number; title: string; Name: string; }[]' is not assignable to type

125 Views Asked by At

enter image description hereI am trying to run below code in VS2017 typescript for Angular 2, getting an error. I have created CustomerViewModel also. I am unable to create an array list of class CustomerViewModel. Here is the code,

enter image description here

0

There are 0 best solutions below