Having trouble changing the input array value in Angular 14. I'm not sure why it's not working. If anyone has any insights or solutions, please help!
Snippet from app.component.ts:
changeVal() {
this.httpClient.get<string[]>('assets/role.json').subscribe((data) => {
this.allData = data;
console.log(data);
});
}
Check out the demo: https://stackblitz.com/edit/angular-ivy-3p6bxk?file=src%2Fapp%2Fauto%2Fauto.component.ts