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
Preetham Thangamma
NA
167
16.8k
How to write "option" to read data for dropdown in angular
Mar 3 2021 9:52 AM
Good Afternoon,
Below is the code to read the data from database:
while
(dr.Read())
{
pROScrutinyDetails.type_treat = obj_DbNullHandler.CheckDBNullAndReturnNullableStringForDataReader(dr,
"type_treat"
);
}
and it is reading 3 values and i want display as a dropdown showing all 3 values....so please do let me know how to write the <option> for the same!!
i tried the below but it is not working:
<option [value]="item.type_treat" *ngFor="let item of f">{{item.type_treat}}</option>
Thank you
Reply
Answers (
3
)
Path relative style import Angular
Convert Date time to YYYY-MM_DD in Angular