Skip to content

Commit 08c822d

Browse files
authored
Fix/remove deprecated functionality (#251)
1 parent 4ac8e1f commit 08c822d

6 files changed

Lines changed: 20 additions & 11 deletions

File tree

projects/angular-cld/samples/angular-universal-sample/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,13 @@
3939
"@angular/http": "^6.0.0",
4040
"@angular/platform-browser": "^6.0.0",
4141
"@angular/platform-browser-dynamic": "^6.0.0",
42-
"@angular/platform-server": "^6.0.0",
42+
"@angular/platform-server": "^6.1.10",
4343
"@angular/router": "^6.0.0",
4444
"@nguniversal/common": "^6.0.0",
4545
"@nguniversal/express-engine": "^6.0.0",
46-
"@nguniversal/module-map-ngfactory-loader": "^6.0.0",
46+
"@nguniversal/module-map-ngfactory-loader": "^6.1.0",
4747
"core-js": "^2.4.1",
4848
"rxjs": "6.0.0",
49-
"webpack-cli": "^3.3.0",
5049
"zone.js": "^0.8.26"
5150
},
5251
"devDependencies": {
@@ -60,12 +59,13 @@
6059
"cloudinary-core": "^2.5.0",
6160
"codelyzer": "^4.0.2",
6261
"cpy-cli": "^1.0.1",
63-
"express": "^4.15.2",
62+
"express": "^4.17.1",
6463
"lite-server": "^2.3.0",
6564
"pre-commit": "^1.2.2",
6665
"reflect-metadata": "^0.1.10",
67-
"ts-loader": "^4.2.0",
66+
"ts-loader": "^4.5.0",
6867
"tslint": "^5.7.0",
69-
"typescript": "~2.7.2"
68+
"typescript": "~2.7.2",
69+
"webpack-cli": "^3.3.10"
7070
}
7171
}

projects/angular-cld/samples/angular-universal-sample/src/app/app.module.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,14 @@ export const config: CloudinaryConfiguration = cloudinaryConfiguration;
2424
BrowserModule.withServerTransition({appId: 'my-app'}),
2525
RouterModule.forRoot([
2626
{ path: '', component: HomeComponent, pathMatch: 'full'},
27-
{ path: 'lazy', loadChildren: './lazy/lazy.module#LazyModule'},
28-
{ path: 'lazy/nested', loadChildren: './lazy/lazy.module#LazyModule'}
29-
]),
27+
{ path: 'lazy',
28+
loadChildren: () => import('./lazy/lazy.module').then(m => m.LazyModule)
29+
},
30+
{ path: 'lazy/nested',
31+
loadChildren: () => import('./lazy/lazy.module').then(m => m.LazyModule)
32+
}
33+
34+
]),
3035
TransferHttpCacheModule,
3136
CloudinaryModule.forRoot(cloudinary, config),
3237
],
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
cloud_name: 'rcstraus',
3+
};

projects/angular-cld/samples/angular-universal-sample/src/tsconfig.app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"outDir": "../out-tsc/app",
55
"baseUrl": "./",
6-
"module": "es2015",
6+
"module": "esnext",
77
"types": [
88
"node"
99
]

projects/angular-cld/samples/angular-universal-sample/src/tsconfig.server.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"outDir": "../out-tsc/app",
55
"baseUrl": "./",
66
// Set the module format to "commonjs":
7-
"module": "commonjs",
7+
"module": "esnext",
88
"types": [
99
"node"
1010
]

projects/angular-cld/samples/angular-universal-sample/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"emitDecoratorMetadata": true,
99
"experimentalDecorators": true,
1010
"target": "es5",
11+
"module": "esnext",
1112
"typeRoots": [
1213
"node_modules/@types"
1314
],

0 commit comments

Comments
 (0)