docs(aio): fix aot-compiler example to work with Angular v5 (#19511)

PR Close #19511
This commit is contained in:
Peter Bacon Darwin
2017-10-04 12:34:28 +01:00
committed by Tobias Bosch
parent 142a2b7341
commit 9fe6363575
5 changed files with 9 additions and 15 deletions

View File

@ -7,7 +7,7 @@ import uglify from 'rollup-plugin-uglify';
export default {
entry: 'src/main.js',
dest: 'src/build.js', // output a single application bundle
sourceMap: false,
sourceMap: true,
format: 'iife',
onwarn: function(warning) {
// Skip certain warnings

View File

@ -1,6 +1,6 @@
// #docregion
import { platformBrowser } from '@angular/platform-browser';
import { AppModuleNgFactory } from '../aot/src/app/app.module.ngfactory';
import { AppModuleNgFactory } from './app/app.module.ngfactory';
console.log('Running AOT compiled');
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);

View File

@ -7,7 +7,6 @@
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["es2015", "dom"],
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true,
"typeRoots": [
"./node_modules/@types/"
@ -20,7 +19,8 @@
],
"angularCompilerOptions": {
"genDir": "aot",
"skipMetadataEmit" : true
}
"annotationsAs": "decorators",
"genDir": ".",
"skipMetadataEmit" : true
}
}