mustafahlvc 8910e6f5dc angular-in-memory-web-api updated,
+ Http changed with HttpClient,
+ Angular Material Element examples added,
+ angular2-markdown Library added
2017-09-27 19:41:01 +03:00

28 lines
666 B
TypeScript

import {Component} from '@angular/core';
import {MdSnackBar} from '@angular/material';
/**
* @title Snack-bar with a custom component
*/
@Component({
selector: 'snack-bar-component-example',
templateUrl: 'snack-bar-component-example.html',
})
export class SnackBarComponentExample {
constructor(public snackBar: MdSnackBar) {}
openSnackBar() {
this.snackBar.openFromComponent(PizzaPartyComponent, {
duration: 500,
});
}
}
@Component({
selector: 'snack-bar-component-example-snack',
templateUrl: 'snack-bar-component-example-snack.html',
styleUrls: ['snack-bar-component-example-snack.css'],
})
export class PizzaPartyComponent {}