mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
510 B
23 lines
510 B
/*
|
|
* Squidex Headless CMS
|
|
*
|
|
* @license
|
|
* Copyright (c) Sebastian Stehle. All rights reserved
|
|
*/
|
|
|
|
import { Directive, ElementRef, OnInit, Renderer } from '@angular/core';
|
|
|
|
@Directive({
|
|
selector: '.sqx-cloak'
|
|
})
|
|
export class CloakDirective implements OnInit {
|
|
constructor(
|
|
private readonly element: ElementRef,
|
|
private readonly renderer: Renderer
|
|
) {
|
|
}
|
|
|
|
public ngOnInit() {
|
|
this.renderer.setElementClass(this.element.nativeElement, 'sqx-cloak', false);
|
|
}
|
|
}
|