@abdelhamidts wrote:
i want add new item to this array but push cannot work
pages: Array<{title: any, component: any}>;this.pages.push({title: user , component: “danger” });
error : cannot read ’ push ’ of undefinedplease help me to find solution
thank you
Posts: 2
Participants: 2