Thinking in Angular2

The plan for KMEETUPS homepage

 

*display component only

<hero>

<navbar>

<event-card>

<event-card>

<event-card>

<event-card>

<event-grid-infinite>

<event-grid>

Code

switch to branch 0_1 &

Genearating new component:

ng g component events-grid

Importing component in app.component.ts:

import { EventsGridComponent } from './events-grid';

Add component to component directives in app.component.ts:

directives: [EventsGridComponent]

Use component in html template:

<app-events-grid></app-events-grid>

Chill untill next session

switch to branch 0_2 &

Splitting into components

By Dvir Hazout

Splitting into components

  • 505