angular/packages/compiler-cli/integrationtest/src/bootstrap.ts

16 lines
421 B
TypeScript
Raw Normal View History

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {createNgModule} from '@angular/core';
import {BasicComp} from './basic';
import {MainModule} from './module';
const ngModuleRef = createNgModule(MainModule);
ngModuleRef.instance.appRef.bootstrap(BasicComp);