Skip to content
Snippets Groups Projects
Commit 8d6b028e authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Add new component for viewing statistic of content

parent cadadb6c
No related merge requests found
......@@ -20,6 +20,7 @@ import { EssentialsModule } from '../essentials/essentials.module';
import { SharedRoutingModule } from './shared-routing.module';
import { ListStatisticComponent } from './list-statistic/list-statistic.component';
import { ChartsModule } from 'ng2-charts';
import { StatisticComponent } from './statistic/statistic.component';
@NgModule({
imports: [
......@@ -46,7 +47,8 @@ import { ChartsModule } from 'ng2-charts';
CommentCreatePageComponent,
CommentListComponent,
StatisticsPageComponent,
ListStatisticComponent
ListStatisticComponent,
StatisticComponent
],
exports: [
RoomJoinComponent,
......
<p>
statistic works!
</p>
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { StatisticComponent } from './statistic.component';
describe('StatisticComponent', () => {
let component: StatisticComponent;
let fixture: ComponentFixture<StatisticComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ StatisticComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(StatisticComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-statistic',
templateUrl: './statistic.component.html',
styleUrls: ['./statistic.component.scss']
})
export class StatisticComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment