Check Box

참조

app.module.ts

import {MatCheckboxModule } from '@angular/material/checkbox';

@NgModule({
  imports: [MatCheckboxModule]
})

예제 1

  • template
<label id="fx-control">
  Special Effects <input type="checkbox" checked="" id="fx-control-checkbox" (change)="onChangeSpecialEffect($event)">
</label>
  • component
public onChangeSpecialEffect(e: any) {
  console.log( e.target.checked);
}

Table of contents 목차

평점을 남겨주세요
평점 : 2.5
총 투표수 : 1