I am new to angular2 material and a bit confused :)
I want to use the toolbar component of the angular2 material.
so far I have installed the following packages using npm:
"@angular2-material/core": "^2.0.0-alpha.3"
"@angular2-material/toolbar": "^2.0.0-alpha.3"
and my application file contains the following:
<md-toolbar [color]="primary">
<span>My Application Title</span>
</md-toolbar>
and now I define my component using typescript:
@Component({
selector: 'app',
templateUrl: 'client/app.html'
})
Now I know that I need to somehow enable the toolbar component that I installed and add it to the new directives property inside @Component decorator. but I can’t find examples on the net about how to do this.
all i can find are examples of ng2 material at https://justindujardin.imtqy.com/ng2-material/
at the moment .. do i need to use ng2 material? installing angular2 material core and toolbar is not enough?
ng2-, angular2 - ? ?
, , .