Issue
Is it possible to bind data to a label using ngModel
? I want to display data fetched from the database and display using labels and not input(textbox).
Solution
There are 3 options :
<label [value]="someValueExpression"/>
<label>{{ value}}</label>
when you are using form:
<label for="name">Name</label> <input type="text" class="form-control" id="name" required>
Answered By - Yoav Schniederman
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.