에 존재하지 않는 :이 오류가 계속재산권 내가이 각도 4 구성 요소가 구성 요소
export class MenuComponent {
constructor(private menuService: MenuService) { }
@Input(nodes):any;
getMenu(path:string): void {
this.menuService.getData(path).subscribe(data => {
// Read the result field from the JSON response.
let newValue = JSON.stringify(data).replace('{"Node":', '[');
newValue = newValue.substring(0,newValue.length - 1);
newValue+="]";
const menu=JSON.parse(newValue);
this.nodes = menu;
});
}
}
: Property 'nodes' does not exist on type 'MenuComponent'
을하고 nodes
속성이 바로 거기에 있기 때문에 내가 왜 아무 생각이 없습니다.
'@Input() nodes : any;'? – jonrsharpe
무엇이 잘못 되었나요? – eli
내 의견을 실제로 작성한 내용과 비교해보십시오! – jonrsharpe