This is a partial replication of what was shown during ng-conf 2018 angular cdk talk live coding
ng new demo-app
cd demo-app
npm install --save @angular/material@next @angular/cdk@next
ng add @angular/material
ng generate @angular/material:materialNav --name=main-nav
...
This project was generated with Angular CLI version 6.0.0-rc.4.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.