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 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(demo): Add MDC List documentation/examples
- Loading branch information
Showing
25 changed files
with
983 additions
and
511 deletions.
There are no files selected for viewing
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
22 changes: 18 additions & 4 deletions
22
src/demo-app/components/button-demo/button-demo.component.ts
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,9 +1,23 @@ | ||
import { | ||
Component, | ||
Component, | ||
ViewChild | ||
} from '@angular/core'; | ||
|
||
import { SnackbarMessage, SnackbarComponent } from '@angular-mdc/web'; | ||
|
||
@Component({ | ||
selector: 'button-demo', | ||
templateUrl: './button-demo.component.html' | ||
selector: 'button-demo', | ||
templateUrl: './button-demo.component.html' | ||
}) | ||
export class ButtonDemoComponent { } | ||
export class ButtonDemoComponent { | ||
message: SnackbarMessage; | ||
@ViewChild('snack') snack: SnackbarComponent; | ||
|
||
handleClick() { | ||
this.message = { | ||
message: 'Sample text', | ||
actionText: 'Ok', | ||
}; | ||
this.snack.show(this.message); | ||
} | ||
} |
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
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
Oops, something went wrong.