export class AppComponent { @ViewChild('username') input; }. Now anywhere inside the class we can reference this.input and get the element ...
確定! 回上一頁