Commit f224770a authored by Maxime REYROLLE's avatar Maxime REYROLLE

implements dashboard component

parent 49ef62e9
dashboard works!
<ul *ngFor="let service of servicesData" class="services">
<li><a href="{{service.url}}">{{}}</a>
<ul *ngFor="let data of">
<a href="{{}}">{{data.label}}</a>
import { Component, OnInit } from '@angular/core';
import {Component, OnInit} from '@angular/core';
import {DashboardService} from '../shared/dashboard.service';
import {ActivatedRoute} from '@angular/router';
selector: 'app-dashboard',
......@@ -6,10 +9,21 @@ import { Component, OnInit } from '@angular/core';
styleUrls: ['./dashboard.component.css']
export class DashboardComponent implements OnInit {
constructor() { }
constructor(private dashboardService: DashboardService, private route: ActivatedRoute) {
ngOnInit() {
this.route.params.subscribe(params => {
if (!params['local_government_id']) {
.subscribe(servicesData => {
this.servicesData =;
Markdown is supported
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