fix(angular): aot

This commit is contained in:
Manu Mtz.-Almeida
2018-05-10 18:40:56 +02:00
parent 0ad9c8672d
commit 714f4a658d
4 changed files with 13862 additions and 19 deletions

2831
angular/package-lock.json generated

File diff suppressed because one or more lines are too long

View File

@ -42,21 +42,21 @@
"@ionic/core": "4.0.0-alpha.5"
},
"devDependencies": {
"@angular/common": "^6.0.0-rc.3",
"@angular/compiler": "^6.0.0-rc.3",
"@angular/compiler-cli": "^6.0.0-rc.3",
"@angular/core": "^6.0.0-rc.3",
"@angular/forms": "^6.0.0-rc.3",
"@angular/platform-browser": "^6.0.0-rc.3",
"@angular/platform-browser-dynamic": "^6.0.0-rc.3",
"@angular/router": "^6.0.0-rc.3",
"@angular/common": "^6.0.0",
"@angular/compiler": "^6.0.0",
"@angular/compiler-cli": "^6.0.0",
"@angular/core": "^6.0.0",
"@angular/forms": "^6.0.0",
"@angular/platform-browser": "^6.0.0",
"@angular/platform-browser-dynamic": "^6.0.0",
"@angular/router": "^6.0.0",
"chalk": "^2.3.2",
"execa": "^0.10.0",
"fs-extra": "^5.0.0",
"glob": "7.1.2",
"inquirer": "^5.2.0",
"listr": "^0.13.0",
"rxjs": "^6.0.0-terrific-rc.3",
"rxjs": "^6.0.0",
"semver": "^5.5.0",
"tslint": "^5.8.0",
"tslint-ionic-rules": "0.0.14",

View File

@ -4,7 +4,6 @@ import { CommonModule } from '@angular/common';
import * as c from './directives';
import * as d from './directives/proxies';
import * as p from './providers';
import { setupConfig } from '@ionic/core';
const DECLARATIONS = [
// proxies
@ -129,17 +128,11 @@ const PROVIDERS = [
imports: [CommonModule]
})
export class IonicModule {
static forRoot(config?: { [key: string]: any }): ModuleWithProviders {
static forRoot(_config?: { [key: string]: any }): ModuleWithProviders {
return {
ngModule: IonicModule,
providers: [
...PROVIDERS,
{ provide: p.ConfigToken, useValue: config },
{
provide: p.Config,
useFactory: setupConfig,
deps: [p.ConfigToken, p.Platform]
}
]
};
}