Skip to content

Commit 890c1ac

Browse files
Angular version upgrade to v8.0
1 parent 941fd85 commit 890c1ac

File tree

8 files changed

+1652
-2168
lines changed

8 files changed

+1652
-2168
lines changed
File renamed without changes.

src/AspnetRun.Web/package-lock.json

Lines changed: 1625 additions & 2142 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/AspnetRun.Web/package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,33 @@
1111
},
1212
"private": true,
1313
"dependencies": {
14-
"@angular/animations": "~7.2.0",
15-
"@angular/common": "~7.2.0",
16-
"@angular/compiler": "~7.2.0",
17-
"@angular/core": "~7.2.0",
18-
"@angular/forms": "~7.2.0",
19-
"@angular/platform-browser": "~7.2.0",
20-
"@angular/platform-browser-dynamic": "~7.2.0",
21-
"@angular/router": "~7.2.0",
14+
"@angular/animations": "~8.1.3",
15+
"@angular/common": "~8.1.3",
16+
"@angular/compiler": "~8.1.3",
17+
"@angular/core": "~8.1.3",
18+
"@angular/forms": "~8.1.3",
19+
"@angular/platform-browser": "~8.1.3",
20+
"@angular/platform-browser-dynamic": "~8.1.3",
21+
"@angular/router": "~8.1.3",
2222
"@ng-select/ng-select": "^2.19.0",
2323
"bootstrap": "^4.3.1",
2424
"core-js": "^2.5.4",
2525
"lodash": "^4.17.11",
2626
"ngx-bootstrap": "^4.1.1",
2727
"ngx-ui-loader": "^7.2.2",
28-
"rxjs": "~6.5.1",
28+
"rxjs": "~6.5.2",
2929
"tslib": "^1.9.0",
30-
"zone.js": "~0.8.26"
30+
"zone.js": "~0.9.1"
3131
},
3232
"devDependencies": {
33-
"@angular-devkit/build-angular": "~0.13.0",
34-
"@angular/cli": "~7.3.8",
35-
"@angular/compiler-cli": "~7.2.0",
36-
"@angular/language-service": "~7.2.0",
33+
"@angular-devkit/build-angular": "~0.801.3",
34+
"@angular/cli": "~8.1.3",
35+
"@angular/compiler-cli": "~8.1.3",
36+
"@angular/language-service": "~8.1.3",
3737
"@types/node": "~8.9.4",
3838
"@types/jasmine": "~2.8.8",
3939
"@types/jasminewd2": "~2.0.3",
40-
"codelyzer": "~4.5.0",
40+
"codelyzer": "^5.0.1",
4141
"jasmine-core": "~2.99.1",
4242
"jasmine-spec-reporter": "~4.2.1",
4343
"karma": "~4.0.0",
@@ -48,6 +48,6 @@
4848
"protractor": "~5.4.0",
4949
"ts-node": "~7.0.0",
5050
"tslint": "~5.11.0",
51-
"typescript": "~3.2.2"
51+
"typescript": "~3.4.5"
5252
}
5353
}

src/AspnetRun.Web/src/app/app-routing.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { Routes, RouterModule, PreloadAllModules } from '@angular/router';
33

44
export const routes: Routes = [
55
{ path: '', redirectTo: 'product', pathMatch: 'full', },
6-
{ path: 'product', loadChildren: './views/product/product.module#ProductModule' },
7-
{ path: 'category', loadChildren: './views/category/category.module#CategoryModule' }
6+
{ path: 'product', loadChildren: () => import('./views/product/product.module').then(m => m.ProductModule) },
7+
{ path: 'category', loadChildren: () => import('./views/category/category.module').then(m => m.CategoryModule) }
88
];
99

1010
@NgModule({

src/AspnetRun.Web/src/app/views/product/product-delete/product-delete-modal.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { ProductDataService } from 'src/app/core/services/product-data.service';
88
styleUrls: ['./product-delete-modal.component.scss']
99
})
1010
export class ProductDeleteModalComponent implements OnInit {
11-
@ViewChild('deleteModal') public deleteModal: ModalDirective;
11+
@ViewChild('deleteModal', { static: true }) public deleteModal: ModalDirective;
1212
@Input() productId?: number;
1313
@Output() productDeleted: EventEmitter<Date> = new EventEmitter<Date>();
1414

src/AspnetRun.Web/src/polyfills.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
*
4444
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
4545
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
46-
* (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
46+
* (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
4747
*
4848
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
4949
* with the following flag, it will bypass `zone.js` patch for IE/Edge

src/AspnetRun.Web/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
"compileOnSave": false,
33
"compilerOptions": {
44
"baseUrl": "./",
5+
"downlevelIteration": true,
56
"outDir": "./dist/out-tsc",
67
"sourceMap": true,
78
"declaration": false,
8-
"module": "es2015",
9+
"module": "esnext",
910
"moduleResolution": "node",
1011
"emitDecoratorMetadata": true,
1112
"experimentalDecorators": true,
1213
"importHelpers": true,
13-
"target": "es5",
14+
"target": "es2015",
1415
"typeRoots": [
1516
"node_modules/@types"
1617
],

src/AspnetRun.Web/tslint.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@
6262
],
6363
"trailing-comma": false,
6464
"no-output-on-prefix": true,
65-
"use-input-property-decorator": true,
66-
"use-output-property-decorator": true,
67-
"use-host-property-decorator": true,
65+
"no-inputs-metadata-property": true,
66+
"no-outputs-metadata-property": true,
67+
"no-host-metadata-property": true,
6868
"no-input-rename": true,
6969
"no-output-rename": true,
70-
"use-life-cycle-interface": true,
70+
"use-lifecycle-interface": true,
7171
"use-pipe-transform-interface": true,
7272
"component-class-suffix": true,
7373
"directive-class-suffix": true

0 commit comments

Comments
 (0)