@@ -1,10 +1,12 @@ | |||||
import { NgModule } from '@angular/core'; | import { NgModule } from '@angular/core'; | ||||
import { Routes, RouterModule } from '@angular/router'; | import { Routes, RouterModule } from '@angular/router'; | ||||
import { WelcomeComponent } from './welcome/welcome.component'; | import { WelcomeComponent } from './welcome/welcome.component'; | ||||
import { TabsComponent } from './tabs/tabs.component'; | |||||
const routes: Routes = [ | const routes: Routes = [ | ||||
{ path: '', pathMatch: 'full', redirectTo: 'welcome' }, | { path: '', pathMatch: 'full', redirectTo: 'welcome' }, | ||||
{ component: WelcomeComponent, path: 'welcome'} | |||||
{ component: WelcomeComponent, path: 'welcome' }, | |||||
{ component: TabsComponent, path: 'tabs' } | |||||
]; | ]; | ||||
@NgModule({ | @NgModule({ | ||||
@@ -5,11 +5,21 @@ import { AngularSvgIconModule } from 'angular-svg-icon'; | |||||
import { AppRoutingModule } from './app-routing.module'; | import { AppRoutingModule } from './app-routing.module'; | ||||
import { AppComponent } from './app.component'; | import { AppComponent } from './app.component'; | ||||
import { WelcomeComponent } from './welcome/welcome.component'; | import { WelcomeComponent } from './welcome/welcome.component'; | ||||
import { TabsComponent } from './tabs/tabs.component'; | |||||
import { HomeComponent } from './tabs/home/home.component'; | |||||
import { CoursesComponent } from './tabs/courses/courses.component'; | |||||
import { ReportsComponent } from './tabs/reports/reports.component'; | |||||
import { MoreComponent } from './tabs/more/more.component'; | |||||
@NgModule({ | @NgModule({ | ||||
declarations: [ | declarations: [ | ||||
AppComponent, | AppComponent, | ||||
WelcomeComponent | |||||
WelcomeComponent, | |||||
TabsComponent, | |||||
HomeComponent, | |||||
CoursesComponent, | |||||
ReportsComponent, | |||||
MoreComponent, | |||||
], | ], | ||||
imports: [ | imports: [ | ||||
BrowserModule, | BrowserModule, | ||||
@@ -0,0 +1 @@ | |||||
<p>courses works!</p> |
@@ -0,0 +1,25 @@ | |||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
import { CoursesComponent } from './courses.component'; | |||||
describe('CoursesComponent', () => { | |||||
let component: CoursesComponent; | |||||
let fixture: ComponentFixture<CoursesComponent>; | |||||
beforeEach(async(() => { | |||||
TestBed.configureTestingModule({ | |||||
declarations: [ CoursesComponent ] | |||||
}) | |||||
.compileComponents(); | |||||
})); | |||||
beforeEach(() => { | |||||
fixture = TestBed.createComponent(CoursesComponent); | |||||
component = fixture.componentInstance; | |||||
fixture.detectChanges(); | |||||
}); | |||||
it('should create', () => { | |||||
expect(component).toBeTruthy(); | |||||
}); | |||||
}); |
@@ -0,0 +1,15 @@ | |||||
import { Component, OnInit } from '@angular/core'; | |||||
@Component({ | |||||
selector: 'app-courses', | |||||
templateUrl: './courses.component.html', | |||||
styleUrls: ['./courses.component.scss'] | |||||
}) | |||||
export class CoursesComponent implements OnInit { | |||||
constructor() { } | |||||
ngOnInit(): void { | |||||
} | |||||
} |
@@ -0,0 +1 @@ | |||||
<p>home works!</p> |
@@ -0,0 +1,25 @@ | |||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
import { HomeComponent } from './home.component'; | |||||
describe('HomeComponent', () => { | |||||
let component: HomeComponent; | |||||
let fixture: ComponentFixture<HomeComponent>; | |||||
beforeEach(async(() => { | |||||
TestBed.configureTestingModule({ | |||||
declarations: [ HomeComponent ] | |||||
}) | |||||
.compileComponents(); | |||||
})); | |||||
beforeEach(() => { | |||||
fixture = TestBed.createComponent(HomeComponent); | |||||
component = fixture.componentInstance; | |||||
fixture.detectChanges(); | |||||
}); | |||||
it('should create', () => { | |||||
expect(component).toBeTruthy(); | |||||
}); | |||||
}); |
@@ -0,0 +1,15 @@ | |||||
import { Component, OnInit } from '@angular/core'; | |||||
@Component({ | |||||
selector: 'app-home', | |||||
templateUrl: './home.component.html', | |||||
styleUrls: ['./home.component.scss'] | |||||
}) | |||||
export class HomeComponent implements OnInit { | |||||
constructor() { } | |||||
ngOnInit(): void { | |||||
} | |||||
} |
@@ -0,0 +1 @@ | |||||
<p>more works!</p> |
@@ -0,0 +1,25 @@ | |||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
import { MoreComponent } from './more.component'; | |||||
describe('MoreComponent', () => { | |||||
let component: MoreComponent; | |||||
let fixture: ComponentFixture<MoreComponent>; | |||||
beforeEach(async(() => { | |||||
TestBed.configureTestingModule({ | |||||
declarations: [ MoreComponent ] | |||||
}) | |||||
.compileComponents(); | |||||
})); | |||||
beforeEach(() => { | |||||
fixture = TestBed.createComponent(MoreComponent); | |||||
component = fixture.componentInstance; | |||||
fixture.detectChanges(); | |||||
}); | |||||
it('should create', () => { | |||||
expect(component).toBeTruthy(); | |||||
}); | |||||
}); |
@@ -0,0 +1,15 @@ | |||||
import { Component, OnInit } from '@angular/core'; | |||||
@Component({ | |||||
selector: 'app-more', | |||||
templateUrl: './more.component.html', | |||||
styleUrls: ['./more.component.scss'] | |||||
}) | |||||
export class MoreComponent implements OnInit { | |||||
constructor() { } | |||||
ngOnInit(): void { | |||||
} | |||||
} |
@@ -0,0 +1 @@ | |||||
<p>reports works!</p> |
@@ -0,0 +1,25 @@ | |||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
import { ReportsComponent } from './reports.component'; | |||||
describe('ReportsComponent', () => { | |||||
let component: ReportsComponent; | |||||
let fixture: ComponentFixture<ReportsComponent>; | |||||
beforeEach(async(() => { | |||||
TestBed.configureTestingModule({ | |||||
declarations: [ ReportsComponent ] | |||||
}) | |||||
.compileComponents(); | |||||
})); | |||||
beforeEach(() => { | |||||
fixture = TestBed.createComponent(ReportsComponent); | |||||
component = fixture.componentInstance; | |||||
fixture.detectChanges(); | |||||
}); | |||||
it('should create', () => { | |||||
expect(component).toBeTruthy(); | |||||
}); | |||||
}); |
@@ -0,0 +1,15 @@ | |||||
import { Component, OnInit } from '@angular/core'; | |||||
@Component({ | |||||
selector: 'app-reports', | |||||
templateUrl: './reports.component.html', | |||||
styleUrls: ['./reports.component.scss'] | |||||
}) | |||||
export class ReportsComponent implements OnInit { | |||||
constructor() { } | |||||
ngOnInit(): void { | |||||
} | |||||
} |
@@ -0,0 +1,2 @@ | |||||
<p>tabs works!</p> | |||||
<app-home></app-home> |
@@ -0,0 +1,25 @@ | |||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
import { TabsComponent } from './tabs.component'; | |||||
describe('TabsComponent', () => { | |||||
let component: TabsComponent; | |||||
let fixture: ComponentFixture<TabsComponent>; | |||||
beforeEach(async(() => { | |||||
TestBed.configureTestingModule({ | |||||
declarations: [ TabsComponent ] | |||||
}) | |||||
.compileComponents(); | |||||
})); | |||||
beforeEach(() => { | |||||
fixture = TestBed.createComponent(TabsComponent); | |||||
component = fixture.componentInstance; | |||||
fixture.detectChanges(); | |||||
}); | |||||
it('should create', () => { | |||||
expect(component).toBeTruthy(); | |||||
}); | |||||
}); |
@@ -0,0 +1,15 @@ | |||||
import { Component, OnInit } from '@angular/core'; | |||||
@Component({ | |||||
selector: 'app-tabs', | |||||
templateUrl: './tabs.component.html', | |||||
styleUrls: ['./tabs.component.scss'] | |||||
}) | |||||
export class TabsComponent implements OnInit { | |||||
constructor() { } | |||||
ngOnInit(): void { | |||||
} | |||||
} |
@@ -71,5 +71,5 @@ | |||||
</li> | </li> | ||||
</ul> | </ul> | ||||
<button class="start-button"> All right let's Start! </button> | |||||
<button [routerLink]="['/tabs']" class="start-button"> All right let's Start! </button> | |||||
</div> | </div> |
@@ -1,15 +1,15 @@ | |||||
import { Component, OnInit } from '@angular/core'; | import { Component, OnInit } from '@angular/core'; | ||||
@Component({ | @Component({ | ||||
selector: 'app-welcome', | |||||
templateUrl: './welcome.component.html', | |||||
styleUrls: ['./welcome.component.scss'] | |||||
selector: 'app-welcome', | |||||
templateUrl: './welcome.component.html', | |||||
styleUrls: ['./welcome.component.scss'] | |||||
}) | }) | ||||
export class WelcomeComponent implements OnInit { | export class WelcomeComponent implements OnInit { | ||||
constructor() { } | |||||
constructor() { } | |||||
ngOnInit(): void { | |||||
} | |||||
ngOnInit(): void { | |||||
} | |||||
} | } |