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 --prod-
diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index d425c6f..b04901a 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,7 +1,18 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; +import {TodosComponent} from './components/todos/todos.component'; +import {AboutComponent} from "./components/Pages/about/about.component"; -const routes: Routes = []; + +const routes: Routes = [ + { + path: '', component: TodosComponent + }, + { + path: 'about', component: AboutComponent + } + +]; @NgModule({ imports: [RouterModule.forRoot(routes)], diff --git a/src/app/app.component.html b/src/app/app.component.html index e48d8c1..08a4e8f 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,534 +1,4 @@ - - - - - - - - - - - - -
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 --prod-
about works!
diff --git a/src/app/components/Pages/about/about.component.spec.ts b/src/app/components/Pages/about/about.component.spec.ts new file mode 100644 index 0000000..0e0d812 --- /dev/null +++ b/src/app/components/Pages/about/about.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { AboutComponent } from './about.component'; + +describe('AboutComponent', () => { + let component: AboutComponent; + let fixture: ComponentFixture+ + {{ todo.title }} + +
+