Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AppComponent {
- dish = {};
- loadDishWindow(){
- console.log(this.dish);
- //->Object {}
- this.dish = {
- attributes : [],
- id : null ,
- name : "",
- type : null,
- type_id: null,
- unit: null,
- unit_id: null
- };
- console.log(this.dish);
- //->Object {attributes: Array[0], id: null, name: "", type: null, type_id: null…}
- }
- error TS2339: Property 'name' does not exist on type '{}'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement