This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class AuthGuard implements CanActivate { | |
constructor( | |
private readonly router: Router) { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Directive({ | |
selector: '[clickOutsideElement]' | |
}) | |
export class ClickOutsideDirective { | |
@Output() clickOutside = new EventEmitter<void>(); | |
constructor(private elementRef: ElementRef) { } | |
@HostListener('document:click', ['$event.target']) | |
onClickOutsideElement(target) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Directive({ | |
selector: '[setDirection]' | |
}) | |
export class SetDirDirective { | |
/** | |
* | |
* @param el | |
* @param languageService | |
* @param locale | |
*/ |
NewerOlder