Last active
January 30, 2017 18:36
-
-
Save venkateshwarv/12c574ceecfbf7a430967d72bedc44cd to your computer and use it in GitHub Desktop.
Extending MdSnackBar service
This file contains hidden or 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
import { Injectable } from '@angular/core'; | |
import { MdSnackBar, MdSnackBarRef, MdSnackBarContainer, Overlay, LiveAnnouncer, ComponentPortal, ComponentRef, OverlayRef, OverlayState } from '@angular/material'; | |
import { SnackbarContainerComponent } from './snackbar-container/snackbar-container.component'; | |
import { SnackbarComponent} from './snackbar/snackbar.component'; | |
@Injectable() | |
export class CcSnackBarService extends MdSnackBar { | |
constructor( | |
private _overlay : Overlay, | |
private liveAnnouncer : LiveAnnouncer, | |
private mdSnackBar : MdSnackBar) { | |
super(_overlay, liveAnnouncer, mdSnackBar) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment