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

Angular CLI

Angular CLI

Getting started with Angular 2 and Angular CLI. Presented at Angular AfterHours Meetup: http://www.meetup.com/Angular-AfterHours/ and at JS-IL conference: https://js-il.com/

Shmuela Jacobs

June 26, 2016
Tweet

More Decks by Shmuela Jacobs

Other Decks in Technology

Transcript

  1. What do you like the most about development? setting up

    the project choosing a build tool writing build scripts writing unit tests writing boilerplate creating files - html, css, js configuring e2e tests
  2. What do you like the most about development? setting up

    the project choosing a build tool writing build scripts writing unit tests writing boilerplate creating files - html, css, js configuring e2e tests
  3. <h1>
 {{title}}
 </h1> import { Component } from '@angular/core'; @Component({


    moduleId: module.id,
 selector: 'sj-root',
 templateUrl: 'app.component.html',
 styleUrls: ['app.component.css'] })
 export class AppComponent {
 title = 'app works!';
 }
  4. <h1>
 {{title}}
 </h1> import { Component } from '@angular/core'; import

    { FirstComponentComponent } from './first-component';
 @Component({
 moduleId: module.id,
 selector: 'sj-root',
 templateUrl: 'app.component.html',
 styleUrls: ['app.component.css'] })
 export class AppComponent {
 title = 'app works!';
 }
  5. <h1>
 {{title}}
 </h1> import { Component } from '@angular/core'; import

    { FirstComponentComponent } from './first-component';
 @Component({
 moduleId: module.id,
 selector: 'sj-root',
 templateUrl: 'app.component.html',
 styleUrls: ['app.component.css'],
 directives: [FirstComponentComponent]
 })
 export class AppComponent {
 title = 'app works!';
 }
  6. <h1>
 {{title}}
 </h1> <sj-first-component></sj-first-component> import { Component } from '@angular/core';

    import { FirstComponentComponent } from './first-component';
 @Component({
 moduleId: module.id,
 selector: 'sj-root',
 templateUrl: 'app.component.html',
 styleUrls: ['app.component.css'],
 directives: [FirstComponentComponent]
 })
 export class AppComponent {
 title = 'app works!';
 }
  7. <h1>
 {{title}}
 </h1> <sj-first-component></sj-first-component> import { Component } from '@angular/core';

    import { FirstComponentComponent } from './first-component';
 @Component({
 moduleId: module.id,
 selector: 'sj-root',
 templateUrl: 'app.component.html',
 styleUrls: ['app.component.css'],
 directives: [FirstComponentComponent]
 })
 export class AppComponent {
 title = 'app works!';
 }
  8. ng g service shared/users ng g class shared/user ng g

    directive focus-me ng g pipe currency ng g interface item ng g enum categories ng g route user-dashboard