Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(
el: ElementRef,
renderer: Renderer2,
private router: Router,
private titleSrv: TitleService,
private modalSrv: NzModalService,
private osharp: OsharpService,
private aclSrv: ACLService
) {
renderer.setAttribute(
el.nativeElement,
'ng-alain-version',
VERSION_ALAIN.full,
);
renderer.setAttribute(
el.nativeElement,
'ng-zorro-version',
VERSION_ZORRO.full,
);
}
constructor(
el: ElementRef,
renderer: Renderer2,
@Inject(ALAIN_I18N_TOKEN) private i18n: I18NService,
private meta: MetaService,
private title: TitleService,
private router: Router,
private mobileSrv: MobileService,
breakpointObserver: BreakpointObserver,
) {
renderer.setAttribute(el.nativeElement, 'ng-alain-version', VERSION_ALAIN.full);
renderer.setAttribute(el.nativeElement, 'ng-zorro-version', VERSION_ZORRO.full);
breakpointObserver.observe(this.query).subscribe(res => {
this.isMobile = res.matches;
this.mobileSrv.next(this.isMobile);
});
this.router.events.subscribe(evt => {
if (!(evt instanceof NavigationEnd)) return;
const url = evt.url.split('#')[0].split('?')[0];
if (url.includes('/dev') || url.includes('/404') || this.prevUrl === url) return;
this.prevUrl = url;
let urlLang = url.split('/').pop() || this.i18n.zone;
if (urlLang && ['zh', 'en'].indexOf(urlLang) === -1) {
constructor(
el: ElementRef,
renderer: Renderer2,
private router: Router,
private titleSrv: TitleService,
private modalSrv: NzModalService,
) {
renderer.setAttribute(el.nativeElement, 'ng-alain-version', VERSION_ALAIN.full);
renderer.setAttribute(el.nativeElement, 'ng-zorro-version', VERSION_ZORRO.full);
}
constructor(
private _messageService: NzMessageService,
private _notifyService: NzNotificationService,
el: ElementRef,
renderer: Renderer2,
private router: Router,
private titleSrv: TitleService,
private modalSrv: NzModalService,
) {
renderer.setAttribute(
el.nativeElement,
'ng-alain-version',
VERSION_ALAIN.full,
);
renderer.setAttribute(
el.nativeElement,
'ng-zorro-version',
VERSION_ZORRO.full,
);
}