refactor(benchmarks): add index_aot
to support AoT bootstrap. (#12105)
Note: This only make sure it can compile the AoT version, but does not yet use it in e2e tests.
This commit is contained in:
8
modules/benchmarks/src/tree/ng2_switch/index_aot.ts
Normal file
8
modules/benchmarks/src/tree/ng2_switch/index_aot.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import {enableProdMode} from '@angular/core';
|
||||
import {platformBrowser} from '@angular/platform-browser';
|
||||
|
||||
import {init} from './init';
|
||||
import {AppModuleNgFactory} from './tree.ngfactory';
|
||||
|
||||
enableProdMode();
|
||||
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory).then(init);
|
Reference in New Issue
Block a user