-
Install a Package Manager for Binary
-
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" -
Install NodeJS binary. So that we can easily install node's library.
-
brew install node -
Install angular command line helper.
-
npm -g install angular-cli -
Use this to init angular project, so that you don't have to manually create
package.jsonapp.component.xxx -
ng new my-project -
cd my-project -
npm install --save @angular/material(This will append this library to dependencies json inside package.json)
- go to
app.module.ts- Add
MaterialModule.forRoot()inside imports.
- Add
- go to
style.css- Add
@import '~@angular/material/core/theming/prebuilt/deeppurple-amber.css';
- Add
- Add Html element that start with
mde.g.,<md-checkbox>for a Material Design Checkbox.