feat: add user management service (#113)

Add user management service for self service and update http interceptor
for progress bar.
This commit is contained in:
Abhay Chawla
2018-07-08 16:51:00 +05:30
committed by GitHub
parent 21072b245e
commit 340598b540
7 changed files with 169 additions and 71 deletions
+4 -2
View File
@@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { Component, OnInit, ChangeDetectorRef } from '@angular/core';
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
import { Observable } from 'rxjs';
@@ -20,12 +20,14 @@ export class ShellComponent implements OnInit {
progressBarMode: string;
constructor(private breakpointObserver: BreakpointObserver,
private progressBarService: ProgressBarService) { }
private progressBarService: ProgressBarService,
private cdr: ChangeDetectorRef) { }
ngOnInit() {
this.sidenavCollapsed = true;
this.progressBarService.updateProgressBar.subscribe((mode: string) => {
this.progressBarMode = mode;
this.cdr.detectChanges();
});
}