Skip to content

Commit

Permalink
[chandu] Wired up click events
Browse files Browse the repository at this point in the history
  • Loading branch information
chandru9052 committed Nov 14, 2019
1 parent dfb9793 commit ffe82f2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@
<label>Angular Material Snackbar - Using NGRX Demo</label>
<!-- Snackbar buttons -->
<div class="button-row">
<button mat-raised-button color="primary">Success</button>
<button mat-raised-button color="accent">Info</button>
<button mat-raised-button color="warn">Error</button>
<button mat-raised-button color="primary" (click)="openSuccess($event)">
Success
</button>
<button mat-raised-button color="accent" (click)="openInfo($event)">
Info
</button>
<button mat-raised-button color="warn" (click)="openError($event)">
Error
</button>
</div>
<!-- End of Snackbar buttons -->
<!-- Snackbar buttons -->
<div class="button-row">
<button mat-raised-button>Via NGRX Effect</button>
<button mat-raised-button (click)="openEffect($event)">Via NGRX Effect</button>
</div>
<!-- End of Snackbar buttons -->
<!-- link to the angular material snackbar -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import { Component, OnInit } from '@angular/core';
styleUrls: ['./snackbar-demo.component.scss']
})
export class SnackbarDemoComponent implements OnInit {
constructor() {}

constructor() { }

ngOnInit() {
}
ngOnInit() {}

openSuccess(event: any) {}
openInfo(event: any) {}
openError(event: any) {}
openEffect(event: any) {}
}

0 comments on commit ffe82f2

Please sign in to comment.