line 278 is named this.appMenu but there is no appMenu, the name of the Top Component is AppMenuComponent, not sure is this is suppose to be like this, but i get a build error.
Code: Select all
export class AppMenuComponent implements OnInit, OnDestroy, AfterViewInit {
@Input() reset: boolean;
model: any[];
@ViewChild('layoutMenuScroller') layoutMenuScrollerViewChild: ScrollPanel;
Code: Select all
if (item.items || (!item.url && !item.routerLink)) {
setTimeout(() => {
this.appMenu.layoutMenuScrollerViewChild.moveBar();
}, 450);
event.preventDefault();
}