📜  表单重置输入角度 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:01:29.652000             🧑  作者: Mango

代码示例1
import { Component } from '@angular/core';

@Component({
  selector: 'my-app',
  templateUrl: './app.component.html',
  styleUrls: [ './app.component.css' ]
})
export class AppComponent  {
  name = 'Angular';
  handleClear(){
    this.name = ' ';  }
}