Added first app template
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import { AuthRoles } from 'src/app/models/auth/auth-roles.enum';
|
||||
|
||||
@Pipe({
|
||||
name: 'authRole'
|
||||
})
|
||||
export class AuthRolePipe implements PipeTransform {
|
||||
|
||||
transform(value: AuthRoles): string {
|
||||
return AuthRoles[value].toString();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user