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
| @if EXIST “%~dp0\node.exe” ( | |
| “%~dp0\node.exe” — max_old_space_size=4096 “%~dp0\node_modules@angular\cli\bin\ng” %* | |
| ) ELSE ( | |
| @SETLOCAL | |
| @set PATHEXT=%PATHEXT:;.JS;=;% | |
| node — max_old_space_size=4096 “%~dp0\node_modules@angular\cli\bin\ng” %* | |
| ) |
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
| export UseCustomSnackBar{ | |
| constructor(private ccSnackBar: CcSnackBarService){} | |
| showSnackBar(){ | |
| this.ccSnackBar.open('I am a Cc-Snack-bar', {duration: 1500} ); | |
| } | |
| } |
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( |