Chore: Updated to Angular 16
This commit is contained in:
@@ -11,7 +11,11 @@ import { Role } from '../role';
|
||||
const compare = (a: string | number, b: string | number, isAsc: boolean) =>
|
||||
(a < b ? -1 : 1) * (isAsc ? 1 : -1);
|
||||
export class RoleListDatasource extends DataSource<Role> {
|
||||
constructor(public data: Role[], private paginator?: MatPaginator, private sort?: MatSort) {
|
||||
constructor(
|
||||
public data: Role[],
|
||||
private paginator?: MatPaginator,
|
||||
private sort?: MatSort,
|
||||
) {
|
||||
super();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,10 @@ const serviceName = 'RoleService';
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class RoleService {
|
||||
constructor(private http: HttpClient, private log: ErrorLoggerService) {}
|
||||
constructor(
|
||||
private http: HttpClient,
|
||||
private log: ErrorLoggerService,
|
||||
) {}
|
||||
|
||||
get(id: string | null): Observable<Role> {
|
||||
const getUrl: string = id === null ? `${url}` : `${url}/${id}`;
|
||||
|
||||
Reference in New Issue
Block a user