GUVI
Back

Error

Created 2 years ago
53 Views
1 Comments
Shivam87UfYg
@Shivam87UfYg
Shivam87UfYg
@Shivam87UfYgProfile is locked. Login
While doing a I get following error please Solve this error ... what I have do??? Argument of type 'Object' is not assignable to parameter of type 'Customer'. The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead? Type 'Object' is missing the following properties from type 'Customer': CustomerCode, CustomerName, CustomerAmount, formCustomerGroup 19 (grid-selected)="SelectCustomer($event)"> ~~~~~~ src/app/Customer/CustomerApp.CustomerComponent.ts:6:16 6 templateUrl: './CustomerApp.CustomerView.html' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component CustomerComponent. Error: src/app/Utility/CustomerApp.GridView.html:10:13 - error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type 'Object'. 10 {{colObj[col.colName]}} ~~~~~~~~~~~~~~~~~~~ src/app/Utility/CustomerApp.Grid.ts:5:19 5 templateUrl: "./CustomerApp.GridView.html" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component gridComponent. 1m Error: src/app/Utility/CustomerApp.GridView.html:10:24 - error TS2339: Property 'colName' does not exist on type 'Object'. 10 {{colObj[col.colName]}} ~~~~~~~ src/app/Utility/CustomerApp.Grid.ts:5:19 5 templateUrl: "./CustomerApp.GridView.html" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component gridComponent. Error: src/app/Utility/CustomerApp.GridView.html:4:15 - error TS2339: Property 'colName' does not exist on type 'Object'. 4 {{col.colName}} ~~~~~~~ src/app/Utility/CustomerApp.Grid.ts:5:19 5 templateUrl: "./CustomerApp.GridView.html" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component gridComponent.
Comments
Please login to comment.
 
Powered by habitate.io Habitate