Skip to content

Instantly share code, notes, and snippets.

@jesselima
Last active July 31, 2018 13:56
Show Gist options
  • Select an option

  • Save jesselima/2244481458b9b09e29dc343a2c38e990 to your computer and use it in GitHub Desktop.

Select an option

Save jesselima/2244481458b9b09e29dc343a2c38e990 to your computer and use it in GitHub Desktop.
Usefull commands for Angular CLI 6+

NOTE: You must have Angular CLI 6+

These commands were used under the following environment:

Angular CLI: 6.1.1

Node: 8.9.4

OS: linux x64

Angular: 6.1.0

... animations, common, compiler, compiler-cli, core, forms

... http, language-service, platform-browser

... platform-browser-dynamic, router

Package Version


@angular-devkit/architect 0.7.1

@angular-devkit/build-angular 0.7.1

@angular-devkit/build-optimizer 0.7.1

@angular-devkit/build-webpack 0.7.1

@angular-devkit/core 0.7.1

@angular-devkit/schematics 0.7.1

@angular/cdk 6.4.1

@angular/cli 6.1.1

@angular/material 6.4.1

@ngtools/webpack 6.1.1

@schematics/angular 0.7.1

@schematics/update 0.7.1

rxjs 6.2.2

typescript 2.7.2

webpack 4.9.2

Add Angular Material to an existing Angular project (after this you need to import the Material modules you want to use in the app.module.ts - Import at the top and also add to "imports: []")

ng add @angular/material

Setup side navigation from CLI

ng generate @angular/material:material-nav --name=main-nav

Setup table material component from CLI

ng generate @angular/material:material-table --name=data-table

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment