How to use @delon/abc - 10 common examples

To help you get started, we’ve selected a few @delon/abc 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 ng-alain / delon / site / app / delon.module.ts View on Github external
export function adLodopConfig(): AdLodopConfig {
    return Object.assign(new AdLodopConfig(), {
        license: `A59B099A586B3851E0F0D7FDBF37B603`,
        licenseA: `C94CEE276DB2187AE6B65D56B3FC2848`
    });
}

// endregion

@NgModule({
    imports: [
        NgZorroAntdModule.forRoot(),
        // theme
        AlainThemeModule.forRoot(),
        // abc
        DelonABCModule.forRoot(),
        // form
        DelonFormModule.forRoot(),
        DelonUtilModule.forRoot()
    ]
})
export class DelonModule {
  constructor( @Optional() @SkipSelf() parentModule: DelonModule) {
    throwIfAlreadyLoaded(parentModule, 'DelonModule');
  }

  static forRoot(): ModuleWithProviders {
      return {
          ngModule: DelonModule,
          providers: [
            { provide: AdLodopConfig, useFactory: adLodopConfig }
          ]
github zLulus / NotePractice / Website / DotNetCore / CoreNgAlain / src / app / core / startup / startup.service.ts View on Github external
return new Promise((resolve, reject) => {
      // 设置reuseTabService.mode为ReuseTabMatchMode.URL
      // reuse-tab  是否重用页面,把这个页面排除了,所以只要跳转到别的页面 原tab就会消失
      // https://github.com/cipchk/ng-alain/issues/101
      this.reuseTabService.mode = ReuseTabMatchMode.URL;
      const excludes = new Array();
      excludes.push(new RegExp('/can-deactivate'));
      this.reuseTabService.excludes = excludes;

      zip(
        this.httpClient.get(`assets/tmp/i18n/${this.i18n.defaultLang}.json`),
        this.httpClient.get('assets/tmp/app-data.json'),
      )
        .pipe(
          // 接收其他拦截器后产生的异常消息
          catchError(([langData, appData]) => {
            resolve(null);
            return [langData, appData];
          }),
        )
        .subscribe(
github dotnetcore / OSharp / tests / web / ui / ng-alain7 / src / app / delon.module.ts View on Github external
export function fnSTConfig(): STConfig {
  return {
    ...new STConfig(),
    ...{
      modal: { size: 'lg' }
    } as STConfig
  };
}
github dotnetcore / OSharp / tests / web / ui / ng-alain8 / src / app / delon.module.ts View on Github external
export function fnSTConfig(): STConfig {
  return {
    ...new STConfig(),
    modal: { size: 'lg' },
  };
}
github dotnetcore / OSharp / tests / web / ui / ng-alain7 / src / app / delon.module.ts View on Github external
export function fnPageHeaderConfig(): PageHeaderConfig {
  return {
    ...new PageHeaderConfig(),
    ...{ homeI18n: 'home' } as PageHeaderConfig
  };
}
github dotnetcore / OSharp / tests / web / ui / ng-alain8 / src / app / delon.module.ts View on Github external
export function fnPageHeaderConfig(): PageHeaderConfig {
  return {
    ...new PageHeaderConfig(),
    homeI18n: 'home',
  };
}
github DesignHhuang / flowchart-angular6 / src / app / delon.module.ts View on Github external
export function fnSTConfig(): STConfig {
    return {
        ...new STConfig(),
        ...({
            modal: { size: 'lg' },
        } as STConfig),
    };
}
github personball / abplus-zero-template / angular / src / app / delon.module.ts View on Github external
export function fnSTConfig(): STConfig {
  return {
    ...new STConfig(),
    ...{
      modal: { size: 'lg' }
    } as STConfig
  };
}
github ng-alain / delon / src / app / delon.module.ts View on Github external
export function fnSTConfig(): STConfig {
  return Object.assign(new STConfig(), {
    ps: 3,
  });
}
github dotnetcore / OSharp / samples / web / ui-clients / ng-alain8 / src / app / delon.module.ts View on Github external
export function fnSTConfig(): STConfig {
  return {
    ...new STConfig(),
    modal: { size: 'lg' },
  };
}