diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index d425c6f..0c94865 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,10 +1,19 @@ -import { NgModule } from '@angular/core'; -import { Routes, RouterModule } from '@angular/router'; +import { NgModule } from "@angular/core"; +import { Routes, RouterModule } from "@angular/router"; +import { AppComponent } from "./app.component"; +import { AdminComponent } from "./admin/admin.component"; +import { StatusListComponent } from "./status-list/status-list.component"; -const routes: Routes = []; +const routes: Routes = [ + { path: "", component: StatusListComponent }, + { + path: "admin", + component: AdminComponent + } +]; @NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterModule] }) -export class AppRoutingModule { } +export class AppRoutingModule {} diff --git a/src/app/app.component.html b/src/app/app.component.html index d026d27..77943ec 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,6 +1,4 @@