From 4d87cbb9cf17353669d8e746f1fa95d2bdf178b2 Mon Sep 17 00:00:00 2001 From: Rolando Date: Fri, 30 Aug 2024 14:44:48 -0400 Subject: [PATCH] Created a Main component to use as the application bootstrap component. --- src/app/app.module.ts | 6 ++++-- src/app/main.component.ts | 7 +++++++ src/index.html | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 src/app/main.component.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 37042953..8cae164a 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -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, @@ -29,6 +31,6 @@ import { routerConfigFn } from './router.config'; BrowserModule, FormsModule ], - bootstrap: [UIView] + bootstrap: [MainComponent] }) export class AppModule { } diff --git a/src/app/main.component.ts b/src/app/main.component.ts new file mode 100644 index 00000000..07261059 --- /dev/null +++ b/src/app/main.component.ts @@ -0,0 +1,7 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-main', + template: `Loading...` +}) +export class MainComponent {} diff --git a/src/index.html b/src/index.html index 26919a5f..5bdd6a04 100644 --- a/src/index.html +++ b/src/index.html @@ -13,6 +13,6 @@ integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> - Loading... +