How to use the @delon/theme.VERSION.full function in @delon/theme

To help you get started, we’ve selected a few @delon/theme examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dotnetcore / OSharp / tests / web / ui / ng-alain7 / src / app / app.component.ts View on Github external
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,
    );
  }
github ng-alain / delon / src / app / app.component.ts View on Github external
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) {
github dotnetcore / OSharp / samples / web / ui-clients / ng-alain8 / src / app / app.component.ts View on Github external
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);
  }
github personball / abplus-zero-template / angular / src / app / app.component.ts View on Github external
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,
    );
  }