Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Material & Schematics

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

Material & Schematics

Slides del Meetup Angular México

Avatar for UrielMiranda

UrielMiranda

October 06, 2018
Tweet

Other Decks in Programming

Transcript

  1. Is a visual language that synthesizes the classic principles of

    good design with the innovation of technology and science Material Design
  2. Generate New Project - ng new <projecName> Add angular Material

    - ng add @angular/material Add Theme to main css @import '~@angular/material/prebuilt-themes/deeppurple-amber.css'; Material
  3. Add Nav Bar ng generate @angular/material:material-nav —name=main-nav Add Table ng

    generate @angular/material:material-table —name=table Add Dashboard ng generate @angular/material:material-dashboard --name=dashboard Material-Schematics
  4. “Schematics is a workflow tool for the modern web, it

    can apply transforms to your project, such as create a new component, or updating your code to fix breaking changes in a dependency.” Schematic
  5. Schematic is a “recipe” which can be executed to generate

    and adjust project files with: ng generate <schematic-name> @tomastrajan Schematic
  6. is a project ( npm package ) which contains at

    least one schematic Schematics
  7. Install Devkit $ npm install -g @angular-devkit/schematics-cli Create blank schematic

    $ schematics blank —name=<name> $cd to/path/of/new/schematic Install Schematics $ npm install @schematic/angular Schematics
  8. $ cd to/some/location $ ng new <name-of-project> #New angular proyect

    $ cd <name-of-proyect> $ npm link ./path/to/schematic/<schematic-name> 
 $ ng g <schematic-name>:<schematic-name> --name="some name” Schematics Finals Steps