text: import { NgModule, Compiler } from '@angular/core';
  import { RuntimeCompiler } from '@angular/compiler';
  import { DynamicComponentDirective } from './dynamic-component.directive';
  import { DynamicComponentOptions } from './options';
  /**
   * Setup for DynamicComponentDirective
   *
   * ```ts
   * @NgModule({
   *   imports: [
   *     DynamicComponentModule.forRoot({
   *       imports: [CommonModule]
   *     })
   *   ],
   * })
   * class AppModule {}
   * ```
   */
  export var DynamicComponentModule = (function () {
      function DynamicComponentModule() {
      }
      DynamicComponentModule.forRoot = function (metadata) {
          return {
              ngModule: DynamicComponentModule,
              providers: [
                  {
                      provide: Compiler, useExisting: RuntimeCompiler,
                  },
                  {
                      provide: DynamicComponentOptions, useValue: {
                          ngModuleMetadata: metadata,
                      }
                  },
              ],
          };
      };
      DynamicComponentModule.decorators = [
          { type: NgModule, args: [{
                      declarations: [DynamicComponentDirective],
                      exports: [DynamicComponentDirective],
                  },] },
      ];
      /** @nocollapse */
      DynamicComponentModule.ctorParameters = [];
      return DynamicComponentModule;
  }());
  