Resources
-Here are some links to help you get started:
- -Next Steps
-What do you want to do next with your app?
- - - -ng generate component xyz-
ng add @angular/material-
ng add @angular/pwa-
ng add _____-
ng test-
ng build-
diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 0297262..b010408 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,10 +1,17 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; +import { DashboardComponent } from './dashboard/dashboard.component'; +import { LoginComponent } from './login/login.component'; -const routes: Routes = []; +const routes: Routes = [ + { path: '', pathMatch: 'full', redirectTo: 'login' }, + { component: LoginComponent, path: 'login' }, + { component: DashboardComponent, path: 'dashboard' }, +]; @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 c28b688..90c6b64 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,501 +1 @@ - - - - - - - - - - - - -
- -Here are some links to help you get started:
- -What do you want to do next with your app?
- - - -ng generate component xyz-
ng add @angular/material-
ng add @angular/pwa-
ng add _____-
ng test-
ng build-
dashboard works!
diff --git a/src/app/dashboard/dashboard.component.scss b/src/app/dashboard/dashboard.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/dashboard/dashboard.component.spec.ts b/src/app/dashboard/dashboard.component.spec.ts new file mode 100644 index 0000000..5ec4ff8 --- /dev/null +++ b/src/app/dashboard/dashboard.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { DashboardComponent } from './dashboard.component'; + +describe('DashboardComponent', () => { + let component: DashboardComponent; + let fixture: ComponentFixture