Skip to content

Instantly share code, notes, and snippets.

@artieziff
Last active May 8, 2018 20:05
Show Gist options
  • Save artieziff/7eb337f80130a7542bce4743b64e5846 to your computer and use it in GitHub Desktop.
Save artieziff/7eb337f80130a7542bce4743b64e5846 to your computer and use it in GitHub Desktop.

Angular

CLI Commands

Create new project

ng new <project-name>

Launch Application

The --open flag opens a browser to http://localhost:4200/.

ng serve --open

Create new component

ng generate component <component-name>

Binding

Two way binding

<input [(ngModel)]="hero.name" placeholder="name">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment