Prettied, Linted and updated angular.json according to the latest schematic of Angular CLI.
Now all that is needed is to make it ready for strict compiling. Removed eslint-plugin-prettier as it is not recommended and causes errors for both eslint and prettier Bumped to v8.0.0
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { ActivatedRouteSnapshot, Resolve, Router, RouterStateSnapshot } from '@angular/router';
|
||||
import { User } from '../core/user';
|
||||
import { Resolve, Router } from '@angular/router';
|
||||
import { Observable } from 'rxjs/internal/Observable';
|
||||
|
||||
import { User } from '../core/user';
|
||||
|
||||
import { UserService } from './user.service';
|
||||
|
||||
@Injectable({
|
||||
@@ -10,7 +12,7 @@ import { UserService } from './user.service';
|
||||
export class UserListResolver implements Resolve<User[]> {
|
||||
constructor(private ser: UserService, private router: Router) {}
|
||||
|
||||
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<User[]> {
|
||||
resolve(): Observable<User[]> {
|
||||
return this.ser.list();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user