Pair programming
Baby steps
Time boxing
15mn
git clone https://github.com/ngMorocco/ng2-quick-starter.git
cd ng2-quick-starter
npm install
npm strat
npm install -g angular-cli
ng new ng2-quick-starter
ng serve
IMPORTANT: please make sure node and npm are installed :
node -v
npm -v
15mn
15mn
15mn
Add <base href ="/"> to index.html
create two other component:
home.component.ts and heroes.component.ts
import the router module :
import {RouterModule} from'@angular/router';
add router outlet to app.component.ts:
<a routerLink="/dashboard">Dashboard</a> <a routerLink="/heroes">Heroes</a>
<router-outlet></router-outlet>
15mn