| @@ -7,6 +7,7 @@ import { VideoChapterComponent } from './tabs/courses/video-chapter/video-chapte | |||||
| import { NotesDetailsComponent } from './tabs/courses/notes-details/notes-details.component'; | import { NotesDetailsComponent } from './tabs/courses/notes-details/notes-details.component'; | ||||
| import { CalendarComponent } from './calendar/calendar.component'; | import { CalendarComponent } from './calendar/calendar.component'; | ||||
| import { ProfileComponent } from './profile/profile.component'; | import { ProfileComponent } from './profile/profile.component'; | ||||
| import { AttendanceComponent } from './tabs/more/attendance/attendance.component'; | |||||
| const routes: Routes = [ | const routes: Routes = [ | ||||
| { path: '', pathMatch: 'full', redirectTo: 'welcome' }, | { path: '', pathMatch: 'full', redirectTo: 'welcome' }, | ||||
| @@ -19,6 +20,7 @@ const routes: Routes = [ | |||||
| { component: NotesDetailsComponent, path: 'notes-details/:heading' }, | { component: NotesDetailsComponent, path: 'notes-details/:heading' }, | ||||
| { component: CalendarComponent, path: 'calendar' }, | { component: CalendarComponent, path: 'calendar' }, | ||||
| { component: ProfileComponent, path: 'profile' }, | { component: ProfileComponent, path: 'profile' }, | ||||
| { component: AttendanceComponent, path: 'attendance'}, | |||||
| ]; | ]; | ||||
| @NgModule({ | @NgModule({ | ||||
| @@ -20,6 +20,7 @@ import { ServiceWorkerModule } from '@angular/service-worker'; | |||||
| import { environment } from '../environments/environment'; | import { environment } from '../environments/environment'; | ||||
| import { CalendarComponent } from './calendar/calendar.component'; | import { CalendarComponent } from './calendar/calendar.component'; | ||||
| import { ProfileComponent } from './profile/profile.component'; | import { ProfileComponent } from './profile/profile.component'; | ||||
| import { AttendanceComponent } from './tabs/more/attendance/attendance.component'; | |||||
| @NgModule({ | @NgModule({ | ||||
| declarations: [ | declarations: [ | ||||
| @@ -35,6 +36,7 @@ import { ProfileComponent } from './profile/profile.component'; | |||||
| NotesDetailsComponent, | NotesDetailsComponent, | ||||
| CalendarComponent, | CalendarComponent, | ||||
| ProfileComponent, | ProfileComponent, | ||||
| AttendanceComponent, | |||||
| ], | ], | ||||
| imports: [ | imports: [ | ||||
| BrowserModule, | BrowserModule, | ||||
| @@ -0,0 +1 @@ | |||||
| <p>attendance works!</p> | |||||
| @@ -0,0 +1,25 @@ | |||||
| import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
| import { AttendanceComponent } from './attendance.component'; | |||||
| describe('AttendanceComponent', () => { | |||||
| let component: AttendanceComponent; | |||||
| let fixture: ComponentFixture<AttendanceComponent>; | |||||
| beforeEach(async(() => { | |||||
| TestBed.configureTestingModule({ | |||||
| declarations: [ AttendanceComponent ] | |||||
| }) | |||||
| .compileComponents(); | |||||
| })); | |||||
| beforeEach(() => { | |||||
| fixture = TestBed.createComponent(AttendanceComponent); | |||||
| component = fixture.componentInstance; | |||||
| fixture.detectChanges(); | |||||
| }); | |||||
| it('should create', () => { | |||||
| expect(component).toBeTruthy(); | |||||
| }); | |||||
| }); | |||||
| @@ -0,0 +1,15 @@ | |||||
| import { Component, OnInit } from '@angular/core'; | |||||
| @Component({ | |||||
| selector: 'app-attendance', | |||||
| templateUrl: './attendance.component.html', | |||||
| styleUrls: ['./attendance.component.scss'] | |||||
| }) | |||||
| export class AttendanceComponent implements OnInit { | |||||
| constructor() { } | |||||
| ngOnInit(): void { | |||||
| } | |||||
| } | |||||