Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get value from input by id in angular

<label for="item-input">Add an item:</label>
<input type="text" id="item-input" #newItem>
<button type="button" (click)="addNewItem(newItem.value)">Add to parent's list</button>
Source by angular.io #
 
PREVIOUS NEXT
Tagged: #input #id #angular
ADD COMMENT
Topic
Name
9+2 =