Skip to content

angular-material-extensions/cards

Repository files navigation

@angular-material-extensions/cards - Set of reusable cards templates built with angular material design

npm version, npm Join the chat at https://gitter.im/angular-material-extensions/Lobby CircleCI branch Build Status Coverage Status dependency Status devDependency Status Greenkeeper Badge license

Built by and for developers ❤️

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 📢

Demo

View all the directives in action at https://angular-material-extensions.github.io/cards

Dependencies

  • Angular (requires Angular 2 or higher, tested with 2.0.0)

Installation

Install above dependencies via npm.

Now install @angular-material-extensions/cards via:

npm install --save @angular-material-extensions/cards

SystemJS

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 {
}

Usage

Support

Built by and for developers ❤️ we will help you 👊

License

Copyright (c) 2018 Anthony Nahas. Licensed under the MIT License (MIT)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published