I've tried npm install angular-material --save
and followed the instructions here.
Then I added the script and link to index.html
<script src="node_modules/angular-material/index.js"></script>
<link ref="stylesheet" href="node_modules/angular-material/modules/angular-material.css">
Then I tried adding a simple <md-button>
but am having no luck.
Since this question was written, the Angular team has created the "Material Design for Angular 2" github project: https://github.com/angular/material2
See the Getting Started guide for installation instructions.
They want you to (install and) use the Angular CLI.
Since both projects are currently in alpha, the instructions below may change over time:
# install the CLI globally
npm install -g angular-cli
# create a new project
ng new my-project
# install Angular Material 2 components
npm install --save @angular2-material/{core,button,card}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With