Trying to update the array value inside the http get method. But, it is not working. Get method also not working to get json data from assets folder.Getting status 200 message. So, How to relsove this issue?
app.component.ts:
ngOnInit(): void {
this.httpClient.get<any>('assets/data.json').subscribe((data) => {
console.log(data);
this.selectOptions = data;
});
}