Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 09f3e28

Browse files
authored
build: update to Angular 14 stable (#1147)
Updates the repo to the latest version of Angular.
1 parent 844233b commit 09f3e28

File tree

9 files changed

+386
-407
lines changed

9 files changed

+386
-407
lines changed

angular.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"version": 1,
44
"newProjectRoot": "projects",
5-
"defaultProject": "material-angular-io",
65
"projects": {
76
"material-angular-io": {
87
"root": "",
@@ -328,7 +327,6 @@
328327
}
329328
},
330329
"cli": {
331-
"analytics": "cf155f04-1636-4df9-9ce2-870ba25ad38d",
332-
"defaultCollection": "@angular-eslint/schematics"
330+
"analytics": "cf155f04-1636-4df9-9ce2-870ba25ad38d"
333331
}
334332
}

package.json

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,23 @@
3434
},
3535
"private": true,
3636
"dependencies": {
37-
"@angular/animations": "^14.0.0-rc.2",
38-
"@angular/cdk": "^14.0.0-rc.1",
39-
"@angular/cdk-experimental": "^14.0.0-rc.1",
40-
"@angular/common": "^14.0.0-rc.2",
41-
"@angular/compiler": "^14.0.0-rc.2",
37+
"@angular/animations": "^14.0.0",
38+
"@angular/cdk": "^14.0.0",
39+
"@angular/cdk-experimental": "^14.0.0",
40+
"@angular/common": "^14.0.0",
41+
"@angular/compiler": "^14.0.0",
4242
"@angular/components-examples": "https://github.com/angular/material2-docs-content.git#9bd54cb435a675b1880f4026a64eb9f1677e7087",
43-
"@angular/core": "^14.0.0-rc.2",
44-
"@angular/forms": "^14.0.0-rc.2",
45-
"@angular/google-maps": "^14.0.0-rc.1",
46-
"@angular/localize": "^14.0.0-rc.2",
47-
"@angular/material": "^14.0.0-rc.1",
48-
"@angular/material-experimental": "^14.0.0-rc.1",
49-
"@angular/material-moment-adapter": "^14.0.0-rc.1",
50-
"@angular/platform-browser": "14.0.0-rc.2",
51-
"@angular/platform-browser-dynamic": "14.0.0-rc.2",
52-
"@angular/router": "14.0.0-rc.2",
53-
"@angular/youtube-player": "^14.0.0-rc.1",
43+
"@angular/core": "^14.0.0",
44+
"@angular/forms": "^14.0.0",
45+
"@angular/google-maps": "^14.0.0",
46+
"@angular/localize": "^14.0.0",
47+
"@angular/material": "^14.0.0",
48+
"@angular/material-experimental": "^14.0.0",
49+
"@angular/material-moment-adapter": "^14.0.0",
50+
"@angular/platform-browser": "14.0.0",
51+
"@angular/platform-browser-dynamic": "14.0.0",
52+
"@angular/router": "14.0.0",
53+
"@angular/youtube-player": "^14.0.0",
5454
"@stackblitz/sdk": "^1.5.2",
5555
"material-components-web": "14.0.0-canary.9736ddce9.0",
5656
"moment": "^2.29.1",
@@ -59,14 +59,13 @@
5959
"zone.js": "~0.11.5"
6060
},
6161
"devDependencies": {
62-
"@angular-devkit/build-angular": "^14.0.0-rc.2",
62+
"@angular-devkit/build-angular": "^14.0.0",
6363
"@angular-eslint/builder": "^13.1.0",
6464
"@angular-eslint/eslint-plugin": "^13.1.0",
6565
"@angular-eslint/eslint-plugin-template": "^13.1.0",
66-
"@angular-eslint/schematics": "^13.1.0",
6766
"@angular-eslint/template-parser": "^13.1.0",
68-
"@angular/cli": "^14.0.0-rc.2",
69-
"@angular/compiler-cli": "^14.0.0-rc.2",
67+
"@angular/cli": "^14.0.0",
68+
"@angular/compiler-cli": "^14.0.0",
7069
"@types/imagemin": "^7.0.0",
7170
"@types/jasmine": "^3.7.7",
7271
"@types/node": "^14.14.22",
@@ -97,6 +96,6 @@
9796
"puppeteer": "~8.0.0",
9897
"shelljs": "^0.8.4",
9998
"ts-node": "^8.10.2",
100-
"typescript": "~4.7.1-rc"
99+
"typescript": "~4.7.2"
101100
}
102101
}

scenes/src/app/scenes/autocomplete/autocomplete-scene.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {NoopAnimationsModule} from '@angular/platform-browser/animations';
1919
templateUrl: './autocomplete-scene.html',
2020
})
2121
export class AutocompleteScene implements AfterViewInit {
22-
myControl = new FormControl();
22+
myControl = new FormControl('');
2323
options: string[] = ['hello', 'hello world'];
2424

2525
@ViewChild(MatInput) input!: MatInput;

src/app/shared/doc-viewer/doc-viewer-module.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {CodeSnippet} from '../example-viewer/code-snippet';
2626
StackBlitzButtonModule
2727
],
2828
declarations: [DocViewer, ExampleViewer, HeaderLink, CodeSnippet],
29-
entryComponents: [ExampleViewer, HeaderLink],
30-
exports: [DocViewer, ExampleViewer, HeaderLink],
29+
exports: [DocViewer, ExampleViewer, HeaderLink]
3130
})
3231
export class DocViewerModule { }

src/app/shared/table-of-contents/table-of-contents.module.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {RouterModule} from '@angular/router';
66
@NgModule({
77
imports: [CommonModule, RouterModule],
88
declarations: [TableOfContents],
9-
exports: [TableOfContents],
10-
entryComponents: [TableOfContents],
9+
exports: [TableOfContents]
1110
})
1211
export class TableOfContentsModule { }

0 commit comments

Comments
 (0)