This commit is contained in:
Taric Xin
2022-01-25 16:40:36 +08:00
parent 1692eaa1e4
commit e3eb03ac60
4 changed files with 65 additions and 21 deletions

View File

@ -2,6 +2,7 @@ import { Component, ElementRef, OnInit, Renderer2 } from '@angular/core';
import { NavigationEnd, NavigationError, RouteConfigLoadStart, Router } from '@angular/router';
import { TitleService, VERSION as VERSION_ALAIN } from '@delon/theme';
import { environment } from '@env/environment';
import { NzIconService } from 'ng-zorro-antd/icon';
import { NzModalService } from 'ng-zorro-antd/modal';
import { VERSION as VERSION_ZORRO } from 'ng-zorro-antd/version';
@ -15,10 +16,14 @@ export class AppComponent implements OnInit {
renderer: Renderer2,
private router: Router,
private titleSrv: TitleService,
private modalSrv: NzModalService
private modalSrv: NzModalService,
private iconService: NzIconService
) {
renderer.setAttribute(el.nativeElement, 'ng-alain-version', VERSION_ALAIN.full);
renderer.setAttribute(el.nativeElement, 'ng-zorro-version', VERSION_ZORRO.full);
this.iconService.fetchFromIconfont({
scriptUrl: 'https://at.alicdn.com/t/font_3153207_udngwyp35db.js'
});
}
ngOnInit(): void {