TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
San
NA
804
325.3k
Bind drop down option in Angular 5
Apr 10 2019 11:24 AM
Belo option bind on ngOnInit() after call the service data and bind the option it is working fine.
this.Service.Loadspecial().subscribe(result=>{
this.specialdata=result;
});
<select (change)="selectOption2($event.target.value)" class="form-control" style="height:3rem;">
<option value="0">--Select --</option>
<option [value]="special.specialID" *ngFor="let special of specialdata" >
{{special.specialname}}
</option>
</select>
I need some condition directly bind {{special.specialname}} in option how to implement.
Not need for selecting the option in existing record.
Reply
Answers (
2
)
how to create a parent chiled dropdown in angular 2?
Regarding Calling Function After Content View