Skip to content

Commit

Permalink
Created a Main component to use as the application bootstrap component.
Browse files Browse the repository at this point in the history
  • Loading branch information
lindolo25 committed Aug 30, 2024
1 parent 4a0b73f commit 4d87cbb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';

import { MainComponent } from './main.component';
import { AppComponent } from './app.component';
import { WelcomeComponent } from './welcome.component';
import { LoginComponent } from './login.component';
import { HomeComponent } from './home.component';
import { UIRouterModule, UIView } from '@uirouter/angular';
import { UIRouterModule } from '@uirouter/angular';
import { APP_STATES } from './app.states';
import { GlobalModule } from './global/global.module';
import { routerConfigFn } from './router.config';

@NgModule({
declarations: [
MainComponent,
AppComponent,
WelcomeComponent,
LoginComponent,
Expand All @@ -29,6 +31,6 @@ import { routerConfigFn } from './router.config';
BrowserModule,
FormsModule
],
bootstrap: [UIView]
bootstrap: [MainComponent]
})
export class AppModule { }
7 changes: 7 additions & 0 deletions src/app/main.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Component } from '@angular/core';

@Component({
selector: 'app-main',
template: `<ui-view>Loading...</ui-view>`
})
export class MainComponent {}
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<ui-view>Loading...</ui-view>
<app-main></app-main>
</body>
</html>

0 comments on commit 4d87cbb

Please sign in to comment.