Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

event property value in angular

//HTML
<input type="text" class="form-control"(input)="onUpdateSeverName($event)">
//Component
onUpdateSeverName(event: Event){
  this.serverName = (<HTMLInputElement>event.target).value
}
 
PREVIOUS NEXT
Tagged: #event #property #angular
ADD COMMENT
Topic
Name
1+5 =