17.10.2018 Views

Angular

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 61.3: Md2Toast<br />

Toast is a service, which show notifications in the view.<br />

Creates and show a simple toast noticiation.<br />

import {Md2Toast} from 'md2/toast/toast';<br />

@Component({<br />

selector: "..."<br />

})<br />

export class ... {<br />

...<br />

constructor(private toast: Md2Toast) { }<br />

toastMe() {<br />

this.toast.show('Toast message...');<br />

--- or ---<br />

this.toast.show('Toast message...', 1000);<br />

}<br />

...<br />

}<br />

Section 61.4: Md2Datepicker<br />

Datepicker allow the user to select date and time.<br />

<br />

see for more details here<br />

Section 61.5: Md2Tooltip<br />

Tooltip is a directive, it allows the user to show hint text while the user mouse hover over an element.<br />

A tooltip would have the following markup.<br />

Left<br />

Hover Me<br />

<br />

GoalKicker.com – <strong>Angular</strong> 2 Notes for Professionals 198

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!