Skip to content
Snippets Groups Projects
Commit 16c3b085 authored by GustafWallstrom's avatar GustafWallstrom
Browse files

graph component added

parent 2fa39053
No related branches found
No related tags found
No related merge requests found
{
"git.ignoreLimitWarning": true
}
\ No newline at end of file
......@@ -10,6 +10,7 @@ import { HomeComponent } from './home/home.component';
import { ShowPostComponent } from './show-post/show-post.component';
import { AddPostComponent } from './add-post/add-post.component';
import { CommonService } from './service/common.service';
import { GraphComponent } from './graph/graph.component';
@NgModule({
......@@ -18,7 +19,8 @@ import { CommonService } from './service/common.service';
LoginComponent,
HomeComponent,
ShowPostComponent,
AddPostComponent
AddPostComponent,
GraphComponent
],
imports: [
BrowserModule,
......
<div class="container">
<p>
graph works!
</p>
</div>
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { GraphComponent } from './graph.component';
describe('GraphComponent', () => {
let component: GraphComponent;
let fixture: ComponentFixture<GraphComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ GraphComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(GraphComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-graph',
templateUrl: './graph.component.html',
styleUrls: ['./graph.component.css']
})
export class GraphComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
\ No newline at end of file
......@@ -12,6 +12,15 @@
max-height: 680px;
overflow: auto;
}
.graph{
float: left;
}
}
.graph{
position: relative;
top: auto;
}
.list-group{
......
......@@ -36,4 +36,6 @@
</div>
<app-graph class="graph"></app-graph>
</div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment