diff --git a/README.md b/README.md index 40ac4c7..e9ba8c7 100644 --- a/README.md +++ b/README.md @@ -18,18 +18,34 @@ To use the library you need to import it once per project and then use its Mater #### Using angular2-materialize -Import it once per project, for example in your main.ts: +Import both materialize-css and angular2-materialize once per project, for example in your main.ts: ```js +import "materialize-css"; import "angular2-materialize"; ``` -In your component, use it for dynamic behavior. For example, for collapsible panels: +Add the Google MD fonts to your index.html: +```html + +``` + +Add the MaterializeDirective to your NgModule: ```js import {MaterializeDirective} from "angular2-materialize"; +@NgModule({ + declarations: [ + //... + MaterializeDirective + ], + //... +}) +``` + +In your component, use it for dynamic behavior. For example, for collapsible panels: +```js @Component({ selector: "my-component", - directives: [MaterializeDirective], template: `