Angular 2 - 14 components, directives and styles based on material design lite (npm: @angular-mdl/core)
2016-10-10
bundle/angular2-mdl.js
. The esm entry point is components/index.js
setDefaultViewContainerRef
method. There are two ways to specify a ViewContainerRef
where dynamic Components will be attached:
MdlDialogOutletService
and setDefaultViewContainerRef
<dialog-outlet></dialog-outlet>
component. This component can be anywhere in your html site. The best place is the last child of the body
element. (see https://github.com/mseemann/angular2-mdl/wiki/How-to-use-the-MdlDialogService for more information)ViewContainerRef
for each dialog or snackbar has been removed.alert
and confirm
, showDialog*
return an Observable
and no longer a Promise
(the enum ConfirmResult
has been removed)then
to subscribe
.