Using the ngModel. If you are using [(ngModel)] directive to control your form input fields, then you can clear it by setting an empty string ( ...
確定! 回上一頁