@@ -11,6 +11,7 @@ import { ForumPageComponent } from './forum-page/forum-page.component'; | |||||
import { ChapterNotesComponent } from './tabs/courses/chapter-notes/chapter-notes.component'; | import { ChapterNotesComponent } from './tabs/courses/chapter-notes/chapter-notes.component'; | ||||
import { QuizComponent } from './tabs/courses/quiz/quiz.component'; | import { QuizComponent } from './tabs/courses/quiz/quiz.component'; | ||||
import { PostDetailsComponent } from './reusable-components/forum/post-details/post-details.component'; | import { PostDetailsComponent } from './reusable-components/forum/post-details/post-details.component'; | ||||
import { ChatPageComponent } from './chat-page/chat-page.component'; | |||||
const routes: Routes = [ | const routes: Routes = [ | ||||
{ path: '', pathMatch: 'full', redirectTo: 'welcome' }, | { path: '', pathMatch: 'full', redirectTo: 'welcome' }, | ||||
@@ -26,6 +27,7 @@ const routes: Routes = [ | |||||
{ component: AttendanceComponent, path: 'attendance'}, | { component: AttendanceComponent, path: 'attendance'}, | ||||
{ component: ForumPageComponent, path: 'forum'}, | { component: ForumPageComponent, path: 'forum'}, | ||||
{ component: PostDetailsComponent, path: 'forum-post-details'}, | { component: PostDetailsComponent, path: 'forum-post-details'}, | ||||
{ component: ChatPageComponent, path: 'chats'}, | |||||
]; | ]; | ||||
@NgModule({ | @NgModule({ | ||||
@@ -26,6 +26,8 @@ import { ChapterNotesComponent } from './tabs/courses/chapter-notes/chapter-note | |||||
import { CourseDetailsComponent } from './tabs/courses/course-details/course-details.component'; | import { CourseDetailsComponent } from './tabs/courses/course-details/course-details.component'; | ||||
import { QuizComponent } from './tabs/courses/quiz/quiz.component'; | import { QuizComponent } from './tabs/courses/quiz/quiz.component'; | ||||
import { PostDetailsComponent } from './reusable-components/forum/post-details/post-details.component'; | import { PostDetailsComponent } from './reusable-components/forum/post-details/post-details.component'; | ||||
import { ChatPageComponent } from './chat-page/chat-page.component'; | |||||
import { ChatWindowComponent } from './chat-page/chat-window/chat-window.component'; | |||||
@NgModule({ | @NgModule({ | ||||
declarations: [ | declarations: [ | ||||
@@ -47,6 +49,8 @@ import { PostDetailsComponent } from './reusable-components/forum/post-details/p | |||||
CourseDetailsComponent, | CourseDetailsComponent, | ||||
QuizComponent, | QuizComponent, | ||||
PostDetailsComponent, | PostDetailsComponent, | ||||
ChatPageComponent, | |||||
ChatWindowComponent, | |||||
], | ], | ||||
imports: [ | imports: [ | ||||
BrowserModule, | BrowserModule, | ||||
@@ -0,0 +1 @@ | |||||
<p>chat-page works!</p> |
@@ -0,0 +1,25 @@ | |||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
import { ChatPageComponent } from './chat-page.component'; | |||||
describe('ChatPageComponent', () => { | |||||
let component: ChatPageComponent; | |||||
let fixture: ComponentFixture<ChatPageComponent>; | |||||
beforeEach(async(() => { | |||||
TestBed.configureTestingModule({ | |||||
declarations: [ ChatPageComponent ] | |||||
}) | |||||
.compileComponents(); | |||||
})); | |||||
beforeEach(() => { | |||||
fixture = TestBed.createComponent(ChatPageComponent); | |||||
component = fixture.componentInstance; | |||||
fixture.detectChanges(); | |||||
}); | |||||
it('should create', () => { | |||||
expect(component).toBeTruthy(); | |||||
}); | |||||
}); |
@@ -0,0 +1,15 @@ | |||||
import { Component, OnInit } from '@angular/core'; | |||||
@Component({ | |||||
selector: 'app-chat-page', | |||||
templateUrl: './chat-page.component.html', | |||||
styleUrls: ['./chat-page.component.scss'] | |||||
}) | |||||
export class ChatPageComponent implements OnInit { | |||||
constructor() { } | |||||
ngOnInit(): void { | |||||
} | |||||
} |
@@ -0,0 +1 @@ | |||||
<p>chat-window works!</p> |
@@ -0,0 +1,25 @@ | |||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
import { ChatWindowComponent } from './chat-window.component'; | |||||
describe('ChatWindowComponent', () => { | |||||
let component: ChatWindowComponent; | |||||
let fixture: ComponentFixture<ChatWindowComponent>; | |||||
beforeEach(async(() => { | |||||
TestBed.configureTestingModule({ | |||||
declarations: [ ChatWindowComponent ] | |||||
}) | |||||
.compileComponents(); | |||||
})); | |||||
beforeEach(() => { | |||||
fixture = TestBed.createComponent(ChatWindowComponent); | |||||
component = fixture.componentInstance; | |||||
fixture.detectChanges(); | |||||
}); | |||||
it('should create', () => { | |||||
expect(component).toBeTruthy(); | |||||
}); | |||||
}); |
@@ -0,0 +1,15 @@ | |||||
import { Component, OnInit } from '@angular/core'; | |||||
@Component({ | |||||
selector: 'app-chat-window', | |||||
templateUrl: './chat-window.component.html', | |||||
styleUrls: ['./chat-window.component.scss'] | |||||
}) | |||||
export class ChatWindowComponent implements OnInit { | |||||
constructor() { } | |||||
ngOnInit(): void { | |||||
} | |||||
} |