libs/video-stat-dashboard/src/dashboard.component.ts
selector | app-dashboard |
styleUrls | dashboard.component.css |
templateUrl | ./dashboard.component.html |
constructor(_appService: AppService)
|
||||||
Parameters :
|
import { Component } from '@angular/core';
import { AppService } from './services/app.service';
@Component({
selector: 'app-dashboard',
templateUrl: './dashboard.component.html',
styleUrls: ['./dashboard.component.css']
})
export class DashboardComponent {
constructor(_appService: AppService) {
// Have it injected for the side effect of triggering the data population.
// This is an anti-pattern, right?
}
}
<div class="row">
<div class="col s3">
<top-list></top-list>
</div>
<div class="col s6">
<div class="row">
<div class="col s12">
<video-container></video-container>
</div>
</div>
<div class="row">
<div class="col s12">
<views-breakdown></views-breakdown>
</div>
</div>
</div>
<div class="col s3">
<views-filter></views-filter>
</div>
</div>