This repository has been archived by the owner on Oct 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(checkbox): Checkbox Improvements - Complete overhaul
* Clicking checkbox label now toggles checkbox! * Removed mdc-checkbox-label * mdc-form-field wrapper around checkbox automatically adds htmlFor attribute. BREAKING CHANGE: Removed mdc-checkbox-label directive
- Loading branch information
Showing
4 changed files
with
52 additions
and
50 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { FormsModule } from '@angular/forms'; | ||
|
||
import { CheckboxComponent } from './checkbox'; | ||
import { CheckboxLabelDirective } from './checkbox-label'; | ||
|
||
const CHECKBOX_COMPONENTS = [ | ||
CheckboxComponent, | ||
CheckboxLabelDirective | ||
]; | ||
import { CheckboxComponent } from './checkbox.component'; | ||
|
||
@NgModule({ | ||
imports: [FormsModule], | ||
exports: [CHECKBOX_COMPONENTS], | ||
declarations: [CHECKBOX_COMPONENTS], | ||
exports: [CheckboxComponent], | ||
declarations: [CheckboxComponent] | ||
}) | ||
export class CheckboxModule { } |