Bläddra i källkod

Tab components initiated

master
kj1352 5 år sedan
förälder
incheckning
987f2a7acf
24 ändrade filer med 227 tillägg och 9 borttagningar
  1. +3
    -1
      src/app/app-routing.module.ts
  2. +11
    -1
      src/app/app.module.ts
  3. +1
    -0
      src/app/tabs/courses/courses.component.html
  4. +0
    -0
      src/app/tabs/courses/courses.component.scss
  5. +25
    -0
      src/app/tabs/courses/courses.component.spec.ts
  6. +15
    -0
      src/app/tabs/courses/courses.component.ts
  7. +1
    -0
      src/app/tabs/home/home.component.html
  8. +0
    -0
      src/app/tabs/home/home.component.scss
  9. +25
    -0
      src/app/tabs/home/home.component.spec.ts
  10. +15
    -0
      src/app/tabs/home/home.component.ts
  11. +1
    -0
      src/app/tabs/more/more.component.html
  12. +0
    -0
      src/app/tabs/more/more.component.scss
  13. +25
    -0
      src/app/tabs/more/more.component.spec.ts
  14. +15
    -0
      src/app/tabs/more/more.component.ts
  15. +1
    -0
      src/app/tabs/reports/reports.component.html
  16. +0
    -0
      src/app/tabs/reports/reports.component.scss
  17. +25
    -0
      src/app/tabs/reports/reports.component.spec.ts
  18. +15
    -0
      src/app/tabs/reports/reports.component.ts
  19. +2
    -0
      src/app/tabs/tabs.component.html
  20. +0
    -0
      src/app/tabs/tabs.component.scss
  21. +25
    -0
      src/app/tabs/tabs.component.spec.ts
  22. +15
    -0
      src/app/tabs/tabs.component.ts
  23. +1
    -1
      src/app/welcome/welcome.component.html
  24. +6
    -6
      src/app/welcome/welcome.component.ts

+ 3
- 1
src/app/app-routing.module.ts Visa fil

@@ -1,10 +1,12 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { WelcomeComponent } from './welcome/welcome.component';
import { TabsComponent } from './tabs/tabs.component';

const routes: Routes = [
{ path: '', pathMatch: 'full', redirectTo: 'welcome' },
{ component: WelcomeComponent, path: 'welcome'}
{ component: WelcomeComponent, path: 'welcome' },
{ component: TabsComponent, path: 'tabs' }
];

@NgModule({


+ 11
- 1
src/app/app.module.ts Visa fil

@@ -5,11 +5,21 @@ import { AngularSvgIconModule } from 'angular-svg-icon';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.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({
declarations: [
AppComponent,
WelcomeComponent
WelcomeComponent,
TabsComponent,
HomeComponent,
CoursesComponent,
ReportsComponent,
MoreComponent,
],
imports: [
BrowserModule,


+ 1
- 0
src/app/tabs/courses/courses.component.html Visa fil

@@ -0,0 +1 @@
<p>courses works!</p>

+ 0
- 0
src/app/tabs/courses/courses.component.scss Visa fil


+ 25
- 0
src/app/tabs/courses/courses.component.spec.ts Visa fil

@@ -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();
});
});

+ 15
- 0
src/app/tabs/courses/courses.component.ts Visa fil

@@ -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 {
}

}

+ 1
- 0
src/app/tabs/home/home.component.html Visa fil

@@ -0,0 +1 @@
<p>home works!</p>

+ 0
- 0
src/app/tabs/home/home.component.scss Visa fil


+ 25
- 0
src/app/tabs/home/home.component.spec.ts Visa fil

@@ -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();
});
});

+ 15
- 0
src/app/tabs/home/home.component.ts Visa fil

@@ -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 {
}

}

+ 1
- 0
src/app/tabs/more/more.component.html Visa fil

@@ -0,0 +1 @@
<p>more works!</p>

+ 0
- 0
src/app/tabs/more/more.component.scss Visa fil


+ 25
- 0
src/app/tabs/more/more.component.spec.ts Visa fil

@@ -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();
});
});

+ 15
- 0
src/app/tabs/more/more.component.ts Visa fil

@@ -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 {
}

}

+ 1
- 0
src/app/tabs/reports/reports.component.html Visa fil

@@ -0,0 +1 @@
<p>reports works!</p>

+ 0
- 0
src/app/tabs/reports/reports.component.scss Visa fil


+ 25
- 0
src/app/tabs/reports/reports.component.spec.ts Visa fil

@@ -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();
});
});

+ 15
- 0
src/app/tabs/reports/reports.component.ts Visa fil

@@ -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 {
}

}

+ 2
- 0
src/app/tabs/tabs.component.html Visa fil

@@ -0,0 +1,2 @@
<p>tabs works!</p>
<app-home></app-home>

+ 0
- 0
src/app/tabs/tabs.component.scss Visa fil


+ 25
- 0
src/app/tabs/tabs.component.spec.ts Visa fil

@@ -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();
});
});

+ 15
- 0
src/app/tabs/tabs.component.ts Visa fil

@@ -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 {
}

}

+ 1
- 1
src/app/welcome/welcome.component.html Visa fil

@@ -71,5 +71,5 @@
</li>
</ul>

<button class="start-button"> All right let's Start! </button>
<button [routerLink]="['/tabs']" class="start-button"> All right let's Start! </button>
</div>

+ 6
- 6
src/app/welcome/welcome.component.ts Visa fil

@@ -1,15 +1,15 @@
import { Component, OnInit } from '@angular/core';

@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 {

constructor() { }
constructor() { }

ngOnInit(): void {
}
ngOnInit(): void {
}

}