nonlogos
10/17/2016 - 3:13 PM

Start to finish guide to Angular 2 based on Udemy course

Start to finish guide to Angular 2 based on Udemy course

1. Set up a new project with command line tool

Command line tool stuff

install angular cli tool

npm install -g angular-cli

Create a new angular project

ng new first-app //ng new name of the project

Starts angular development server locally and builds the app

ng serve Go to localhost:4200 to view the page

2. Typescript

3. Angular modules

Components

`import { Component } from '@angular/core';

//decorator @Component({ selector: 'app-root', //How we want to insert it into our html code templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent {

} `