@angular-material-extensions/cards - Set of reusable cards templates built with angular material design
Do you have any question or suggestion ? Please do not hesitate to contact us! Alternatively, provide a PR | open an appropriate issue here
If did you like this project, support angular-material-extensions by starring ⭐ and sharing it 📢
View all the directives in action at https://angular-material-extensions.github.io/cards
- Angular (requires Angular 2 or higher, tested with 2.0.0)
Install above dependencies via npm.
Now install @angular-material-extensions/cards
via:
npm install --save @angular-material-extensions/cards
Note:If you are using
SystemJS
, you should adjust your configuration to point to the UMD bundle. In your systemjs config file,map
needs to tell the System loader where to look for@angular-material-extensions/cards
:
map: {
'@angular-material-extensions/cards': 'node_modules/@angular-material-extensions/cards/bundles/cards.umd.js',
}
Once installed you need to import the main module:
import { MatExtendedCardModule } from '@angular-material-extensions/cards';
The only remaining part is to list the imported module in your application module. The exact method will be slightly
different for the root (top-level) module for which you should end up with the code similar to (notice MatExtendedCardModule .forRoot()
):
import { MatExtendedCardModule } from '@angular-material-extensions/cards';
@NgModule({
declarations: [AppComponent, ...],
imports: [MatExtendedCardModule.forRoot(), ...],
bootstrap: [AppComponent]
})
export class AppModule {
}
Other modules in your application can simply import MatExtendedCardModule
:
import { MatExtendedCardModule } from '@angular-material-extensions/cards';
@NgModule({
declarations: [OtherComponent, ...],
imports: [MatExtendedCardModule, ...],
})
export class OtherModule {
}
- Drop an email to: Anthony Nahas
- or open an appropriate issue
- let us chat on Gitter
Built by and for developers ❤️ we will help you 👊
Copyright (c) 2018 Anthony Nahas. Licensed under the MIT License (MIT)