This repository was archived by the owner on Aug 2, 2019. It is now read-only.
File tree 6 files changed +18
-12
lines changed
6 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,12 @@ import { AppComponent } from './app.component';
4
4
import { RouterModule } from '@angular/router'
5
5
import { IterationRoutes } from './app.routes'
6
6
7
+ import { HomeComponent } from './home' ;
8
+
7
9
@NgModule ( {
8
10
declarations : [
9
- AppComponent
11
+ AppComponent ,
12
+ HomeComponent
10
13
] ,
11
14
imports : [
12
15
BrowserModule ,
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ import { HomeComponent } from './home/home.component';
3
3
4
4
export const IterationRoutes : RouterConfig = [
5
5
{
6
- path : '' ,
6
+ path : '' ,
7
7
component : HomeComponent
8
8
} ,
9
9
{
10
10
path : 'iteration-1' ,
11
- loadChildren : 'app /book-monkey/iteration-1/iteration-1.module#IterationOneModule '
11
+ loadChildren : '. /book-monkey/iteration-1/iteration-1.module'
12
12
}
13
13
/*,
14
14
{
Original file line number Diff line number Diff line change 1
1
import { NgModule } from '@angular/core' ;
2
2
import { BrowserModule } from '@angular/platform-browser' ;
3
3
import { AppComponent } from './app.component' ;
4
+ import { BookListComponent } from './book-list' ;
4
5
5
6
@NgModule ( {
6
7
declarations : [
7
- AppComponent
8
+ AppComponent ,
9
+ BookListComponent
8
10
] ,
9
11
imports : [
10
12
BrowserModule ,
Original file line number Diff line number Diff line change 1
1
import { NgModule } from '@angular/core' ;
2
2
import { IterationOneComponent } from './iteration-1.component' ;
3
3
import { RouterModule } from '@angular/router'
4
- import { IterationRoutes } from './app .routes'
4
+ import { IterationRoutes } from './iteration-1 .routes'
5
5
6
6
@NgModule ( {
7
7
declarations : [
8
8
IterationOneComponent
9
9
] ,
10
10
imports : [
11
- RouterModule . forChild ( IterationRoutes ) ,
11
+ RouterModule . forChild ( IterationRoutes )
12
12
] ,
13
13
providers : [ ] ,
14
14
bootstrap : [ IterationOneComponent ]
15
15
} )
16
- export class AppModule { }
16
+ export class AppModule {
17
+ constructor ( ) {
18
+ console . log ( 'hi there' ) ;
19
+ }
20
+ }
Original file line number Diff line number Diff line change 1
1
import { Component } from '@angular/core' ;
2
- import { ROUTER_DIRECTIVES } from '@angular/router' ;
3
2
4
3
@Component ( {
5
- selector : 'home' ,
6
-
7
- templateUrl : 'home.component.html' ,
8
- directives : [ ROUTER_DIRECTIVES ]
4
+ templateUrl : 'home.component.html'
9
5
} )
10
6
export class HomeComponent { }
Original file line number Diff line number Diff line change
1
+ export * from './home.component' ;
You can’t perform that action at this time.
0 commit comments