Add new component chart-item

This commit is contained in:
Jesse Lucas 2020-03-19 19:00:28 -04:00
parent fb33a8ad6b
commit b0ebf56283
5 changed files with 48 additions and 2 deletions

View File

@ -20,13 +20,14 @@ import { DonutChartComponent } from './chart/donut-chart/donut-chart.component';
import { DeviceChartComponent } from './chart/device-chart/device-chart.component';
import { FolderChartComponent } from './chart/folder-chart/folder-chart.component';
import { DashboardComponent } from './dashboard/dashboard.component';
import { StatusToggleComponent } from './status-toggle/status-toggle.component';
import { ListToggleComponent } from './list-toggle/list-toggle.component';
import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';
import { InMemoryConfigDataService } from './in-memory-config-data.service';
import { deviceID } from './api-utils';
import { environment } from '../environments/environment';
import { ChartItemComponent } from './chart/chart-item/chart-item.component';
@NgModule({
declarations: [
@ -34,11 +35,12 @@ import { environment } from '../environments/environment';
StatusListComponent,
FolderListComponent,
DeviceListComponent,
StatusToggleComponent,
ListToggleComponent,
DashboardComponent,
DonutChartComponent,
DeviceChartComponent,
FolderChartComponent,
ChartItemComponent,
],
imports: [
BrowserModule,

View File

@ -0,0 +1,4 @@
<div fxLayout="row" fxLayoutAlign="space-between start">
<div>color</div>
<div>{{state}}</div>
</div>

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ChartItemComponent } from './chart-item.component';
describe('ChartItemComponent', () => {
let component: ChartItemComponent;
let fixture: ComponentFixture<ChartItemComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ChartItemComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ChartItemComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-chart-item',
templateUrl: './chart-item.component.html',
styleUrls: ['./chart-item.component.scss']
})
export class ChartItemComponent implements OnInit {
state: string = "test"
constructor() { }
ngOnInit(): void {
}
}