Guest User

Untitled

a guest
Feb 4th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. document.getElementById('loginInput').value = '123';
  2.  
  3. <input type='text' id='loginInput' #abc/>
  4.  
  5. this.abc.nativeElement.value
  6.  
  7. ngAfterViewInit(){
  8. document.getElementById('loginInput').value = '123344565';
  9. }
  10.  
  11. (<HTMLInputElement>document.getElementById('loginInput')).value = '123';
  12.  
  13. <input type="text" [(ngModel)]="username" [ngModelOptions]='{standalone: true}'/>
  14. <input type="text" [(ngModel)]="password" [ngModelOptions]='{standalone: true}'/>
  15.  
  16. username: 'whatever'
  17. password: 'whatever'
Add Comment
Please, Sign In to add comment