Skip to content

Version 2.0.0

Compare
Choose a tag to compare
@mseemann mseemann released this 10 Oct 18:01
· 2411 commits to master since this release

2016-10-10

Features

  • 127 (Autocomplete on inputs)
  • 109 (AOT is now supported - e.g. the metadata files are generated)
  • 121 (avoid editing the copied scss source from mdl)
  • 118 (Add animation to mdl-dialogs)
  • 113 (Disabled tabs)
  • 112 (ViewEncapsulation.None for all components)
  • 111 (forRoot module)
  • 131 (Dialog design)
  • 139 (change return types from Promise to Observable)

Breaking Changes

  • The distribution structure has change:
    • The scss folder is now located at scss and no longer in src/scss.
    • The package is now distributed as umd bundle and esm. The bundle file is bundle/angular2-mdl.js. The esm entry point is components/index.js
  • The module MdlModule now works as a root module and makes sure that all providers are loaded into the root injector of the app. You can use MdlNonRootModule. But you should be aware that the providers are possibly not singletons. You also can use MdlNonRootModule.forRoot. This is the same as MdlModule.
  • MdlDialogService and MdlSnackbarService have changed:
    • There is no longer a setDefaultViewContainerRef method. There are two ways to specify a ViewContainerRef where dynamic Components will be attached:
    • The possibility to set a 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)
  • This version now supports AOT - but you should be aware that AOT seems not to be ready for production. AOT behaves in many cases different then JIT. (see angular/angular#11606)
  • The MdlSnachbarService returns now an Observable and no longer a Promise. Just change from then to subscribe.