Affichage du titre des pages dans la navigation
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Component, OnInit, Injectable } from '@angular/core';
|
||||
import { DropZoneResp } from '../../models/dropzone';
|
||||
import { ServiceApi } from '../../services/serviceApi';
|
||||
import { ServiceComm } from '../../services/serviceComm';
|
||||
|
||||
@Component({
|
||||
selector: 'app-list-of-dzs',
|
||||
@@ -12,10 +13,12 @@ import { ServiceApi } from '../../services/serviceApi';
|
||||
export class ListOfDzsComponent implements OnInit {
|
||||
public listOfDropZones: Array<DropZoneResp> = new Array<DropZoneResp>();
|
||||
|
||||
constructor(private serviceApi: ServiceApi) {
|
||||
constructor(private serviceApi: ServiceApi,
|
||||
private serviceComm: ServiceComm) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.serviceComm.updatedComponentTitle('List of DZs');
|
||||
this.getListOfDropZones();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user