Skip to main content
4 events
when toggle format what by license comment
Aug 9, 2016 at 20:05 comment added mpromonet I tried to use http.get('/controls').subscribe(function(data) { this.controlList = data.json(); } and an *ngFor="let control of controlList" to iterate on the array of controls. Your solution needs extra code to store the http answer.
Aug 9, 2016 at 19:17 comment added Jack Guy @mpromonet How does that change things? `http.get('/foo').subscribe((res) => { this.min = res.min; this max = res.max; setTimeout(() => this.value = res.value); })
Aug 9, 2016 at 18:57 comment added mpromonet I thought about this, but as I made a AJAX call that get a JSON lists of 'min','value','max'. This need to parse specifically the value to introduce this deffered setting.
Aug 9, 2016 at 18:38 history answered Jack Guy CC BY-SA 3.0