Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

v1.7.0

Choose a tag to compare

@jfcere jfcere released this 24 Nov 03:27
· 64 commits to master since this release

New features and enhancements

Bug fixes

Breaking changes

Card component

Properties backgroundClass and textClass have been removed on mz-card component. This is breaking change for those using the grid system (classes such as col s12) directly on mz-card as it adds margin and padding to the applied element. Therefore it would now need to be wrapped into a container to apply the grid classes, the same way it should be done with pure Materialize card.

So it will now need to be used like this...

<div class="col s12">
  <mz-card class="blue-grey darken-1 white-text">
    <mz-card-content>
      Great Content Here.
    </mz-card-content>
  </mz-card>
</div>

Deprecacted

MaterializeModule

You can now import individual component module in your application. Each component module name is specified in demo pages. You can see an example below on how to use component modules:

import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
+ import { MzButtonModule, MzInputModule } from 'ng2-materialize';

import { HomeComponent } from './home.component';

@NgModule({
  imports: [
    CommonModule,
+   MzButtonModule,
+   MzInputModule,
  ],
  declarations: [ HomeComponent ],
})
export class HomeModule { }

You can still import MaterializeModule to make all component availables but it is deprecated and will be removed in a near future.