How can I get/update value of element with dynamic id?
<input type="text" class="form-control" id="{{'lat' + ind}}" formControlName="lat">
I can't use ngAfterViewInit() {}
because I need to update dynamic input after server responce
this.someService.getData().subscribe(
(response) => {this.data = response.json()
this.lon = this.data.x;
this.lat = this.data.y;
this.ind = this.data.ind;
// UPDATE MY 'lat+ind' and 'lon+ind' HERE
},
(error) => console.log('ERROR: ' + error)
);