Toast is a service, which show notifications in the view.
Creates and show a simple toast noticiation.
import {Md2Toast} from 'md2/toast/toast';
@Component({
selector: "..."
})
export class ... {
...
constructor(private toast: Md2Toast) { }
toastMe() {
this.toast.show('Toast message...');
--- or ---
this.toast.show('Toast message...', 1000);
}
...
}