These are chat archives for filearts/plunker

17th
Jan 2017
Markus Ånöstam
@Markus-ipse
Jan 17 2017 14:08
How do you use the single dataset instead of multi?
When I try using the single dataset it just crashes the application
srivatsavap
@srivatsavap
Jan 17 2017 16:49
Hi
everyone
I have one question regarding dropdown of angular2
I have html code like below
<select (ngModelChange)="onChange($event)">
<option [value]="i" *ngFor="let i of brands;let j=index;" [selected]="j==heroes[0]">{{i.value}}{{ ? callme() : ''}}</option>
</select>
<select (ngModelChange)="onChange($event)">
<option [value]="i" *ngFor="let i of brands;let j=index;" [selected]="j==heroes[0]">{{i.value}}{{j==3&&countnum<12 ? callme() : ''}}</option>
</select>
callme()
{
this.countnum=this.countnum+1;
this.heroes[0]=this.heroes[this.countnum];
}
my question is why it is not rendering default selected value
?
even though it is rendering for the first time it is changing immediately