Trying to change the input array value. But not working in angular 14.I do not know why it is not working. If anyone knows please help to find the solutions.
app.component.ts:
changeVal() {
this.httpClient.get<string[]>('assets/role.json').subscribe((data) => {
this.allData = data;
console.log(data);
});
}
Demo: https://stackblitz.com/edit/angular-ivy-3p6bxk?file=src%2Fapp%2Fauto%2Fauto.component.ts