File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,19 @@ import { BrowserModule } from '@angular/platform-browser';
2
2
import { NgModule } from '@angular/core' ;
3
3
import { FormsModule } from '@angular/forms' ;
4
4
5
+ import { MainComponent } from './main.component' ;
5
6
import { AppComponent } from './app.component' ;
6
7
import { WelcomeComponent } from './welcome.component' ;
7
8
import { LoginComponent } from './login.component' ;
8
9
import { HomeComponent } from './home.component' ;
9
- import { UIRouterModule , UIView } from '@uirouter/angular' ;
10
+ import { UIRouterModule } from '@uirouter/angular' ;
10
11
import { APP_STATES } from './app.states' ;
11
12
import { GlobalModule } from './global/global.module' ;
12
13
import { routerConfigFn } from './router.config' ;
13
14
14
15
@NgModule ( {
15
16
declarations : [
17
+ MainComponent ,
16
18
AppComponent ,
17
19
WelcomeComponent ,
18
20
LoginComponent ,
@@ -29,6 +31,6 @@ import { routerConfigFn } from './router.config';
29
31
BrowserModule ,
30
32
FormsModule
31
33
] ,
32
- bootstrap : [ UIView ]
34
+ bootstrap : [ MainComponent ]
33
35
} )
34
36
export class AppModule { }
Original file line number Diff line number Diff line change
1
+ import { Component } from '@angular/core' ;
2
+
3
+ @Component ( {
4
+ selector : 'app-main' ,
5
+ template : `<ui-view>Loading...</ui-view>`
6
+ } )
7
+ export class MainComponent { }
Original file line number Diff line number Diff line change 13
13
integrity ="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u " crossorigin ="anonymous ">
14
14
</ head >
15
15
< body >
16
- < ui-view > Loading... </ ui-view >
16
+ < app-main > </ app-main >
17
17
</ body >
18
18
</ html >
You can’t perform that action at this time.
0 commit comments