File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 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';
22import { NgModule } from '@angular/core' ;
33import { FormsModule } from '@angular/forms' ;
44
5+ import { MainComponent } from './main.component' ;
56import { AppComponent } from './app.component' ;
67import { WelcomeComponent } from './welcome.component' ;
78import { LoginComponent } from './login.component' ;
89import { HomeComponent } from './home.component' ;
9- import { UIRouterModule , UIView } from '@uirouter/angular' ;
10+ import { UIRouterModule } from '@uirouter/angular' ;
1011import { APP_STATES } from './app.states' ;
1112import { GlobalModule } from './global/global.module' ;
1213import { routerConfigFn } from './router.config' ;
1314
1415@NgModule ( {
1516 declarations : [
17+ MainComponent ,
1618 AppComponent ,
1719 WelcomeComponent ,
1820 LoginComponent ,
@@ -29,6 +31,6 @@ import { routerConfigFn } from './router.config';
2931 BrowserModule ,
3032 FormsModule
3133 ] ,
32- bootstrap : [ UIView ]
34+ bootstrap : [ MainComponent ]
3335} )
3436export 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 1313 integrity ="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u " crossorigin ="anonymous ">
1414</ head >
1515< body >
16- < ui-view > Loading... </ ui-view >
16+ < app-main > </ app-main >
1717</ body >
1818</ html >
You can’t perform that action at this time.
0 commit comments