Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

v0.6.2 - Modular Component Packaging

Compare
Choose a tag to compare
@trimox trimox released this 06 Dec 01:56
· 1209 commits to master since this release
4254035

Bug Fixes

Features

BREAKING CHANGES

  • select:
    • Removed clearSelection(). Just reset an NgModel by setting it to null.
    • Removed CloseOnScroll as upstream MDC PR fixed the scrolling of open menus.
  • checkbox: change(Event) was changed to change(MdcCheckBox). Please update your code accordingly.

IMPORTANT INFO REGARDING PACKAGING

  • build: * MaterialModule has been removed.

We've found that, with the current state of tree-shaking in the world, that using an aggregate NgModule like MaterialModule leads to tools not being able to eliminate code for components that aren't used.

In order to ensure that users end up with the smallest code size possible.

To replace MaterialModule, users can create their own "Material" module within their application (e.g., AppMaterialModule) that imports only the set of components actually used in the application.

  • MdcCoreModule has been removed. It's modules have been broken out as shown below.
    • Use MdcElevationModule for MDC Elevation directives
    • Use MdcThemeModule for MDC Theme directives
    • Use MdcTypographyModule for MDC Typography directives
    • Use MdcMaterialIconModule for MDC Material Icon directive