Chore: Updated to Angular 16
This commit is contained in:
1 parent
9589081046
commit
78d98f979d
99 files changed
+416
-232
No files matched your search
@@ -11,7 +11,11 @@ import { CostCentre } from '../../core/cost-centre';
|
||||
const compare = (a: string | number, b: string | number, isAsc: boolean) =>
|
||||
(a < b ? -1 : 1) * (isAsc ? 1 : -1);
|
||||
export class CostCentreListDataSource extends DataSource<CostCentre> {
|
||||
constructor(public data: CostCentre[], private paginator?: MatPaginator, private sort?: MatSort) {
|
||||
constructor(
|
||||
public data: CostCentre[],
|
||||
private paginator?: MatPaginator,
|
||||
private sort?: MatSort,
|
||||
) {
|
||||
super();
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,10 @@ const serviceName = 'CostCentreService';
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class CostCentreService {
|
||||
constructor(private http: HttpClient, private log: ErrorLoggerService) {}
|
||||
constructor(
|
||||
private http: HttpClient,
|
||||
private log: ErrorLoggerService,
|
||||
) {}
|
||||
|
||||
get(id: string | null): Observable<CostCentre> {
|
||||
const getUrl: string = id === null ? `${url}` : `${url}/${id}`;
|
||||
|
||||
Reference in new issue
Block a user