Moved from tslint to eslint as tslint was depreciated.
Added prettier and also prettied all the typescript files using prettier ESLint is using the AirBnB rules which are the most strict to lint the files.
This commit is contained in:
@@ -1,16 +1,14 @@
|
||||
import {Injectable} from '@angular/core';
|
||||
import {ActivatedRouteSnapshot, Resolve, Router, RouterStateSnapshot} from '@angular/router';
|
||||
import {Client} from './client';
|
||||
import {Observable} from 'rxjs/internal/Observable';
|
||||
import {ClientService} from './client.service';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { ActivatedRouteSnapshot, Resolve, Router, RouterStateSnapshot } from '@angular/router';
|
||||
import { Client } from './client';
|
||||
import { Observable } from 'rxjs/internal/Observable';
|
||||
import { ClientService } from './client.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ClientListResolver implements Resolve<Client[]> {
|
||||
|
||||
constructor(private ser: ClientService, private router: Router) {
|
||||
}
|
||||
constructor(private ser: ClientService, private router: Router) {}
|
||||
|
||||
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<Client[]> {
|
||||
return this.ser.list();
|
||||
|
||||
Reference in New Issue
Block a user