Skip to content

Instantly share code, notes, and snippets.

kirill-chirkov-at-clouty

View GitHub Profile
@kirill-chirkov-at-clouty
kirill-chirkov-at-clouty / load-example.ts
Last active Nov 19, 2019
Lazy angular module loading
View load-example.ts
import { Injectable, NgModuleFactory } from '@angular/core';
import { first } from 'rxjs/operators';
import { OperatorSignupComponent } from '../../../components/operator-signup/operator-signup.component';
import { OperatorSignupModule } from '../../../components/operator-signup/operator-signup.module';
import { DialogService } from '../../../ui/dialog/dialog.service';
import { ModuleKey } from '../../module-loader/models/module-key.enum';
import { ModuleLoaderService } from '../../module-loader/module-loader.service';
import { OperatorSignupDataModel } from './models/operator-signup-data.model';
You can’t perform that action at this time.