Skip to content

Commit 9972246

Browse files
committed
upgrade to Angular 13
1 parent d40e212 commit 9972246

File tree

6 files changed

+7
-46
lines changed

6 files changed

+7
-46
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
!.vscode/extensions.json
2626

2727
# misc
28+
/.angular/cache
2829
/.sass-cache
2930
/connect.lock
3031
/coverage

README.md

+2-10
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,13 @@
33

44
This repository contains the code of the [Angular Forms In Depth](https://angular-university.io/course/angular-forms-course) video course.
55

6-
This course repository is updated to Angular v12:
6+
This course repository is updated to Angular v13:
77

88
![Angular Forms In Depth](https://angular-university.s3-us-west-1.amazonaws.com/course-images/angular-forms-course-small.jpg)
99

10-
1110
# Installation pre-requisites
1211

13-
For running this project we need node and npm installed on our machine. These are some tutorials to install node in different operating systems:
14-
15-
*Its important to install the latest version of Node*
16-
17-
- [Install Node and NPM on Windows](https://www.youtube.com/watch?v=8ODS6RM6x7g)
18-
- [Install Node and NPM on Linux](https://www.youtube.com/watch?v=yUdHk-Dk_BY)
19-
- [Install Node and NPM on Mac](https://www.youtube.com/watch?v=Imj8PgG3bZU)
20-
12+
Please use Node 16 (Long Term Support version).
2113

2214
# Installing the Angular CLI
2315

angular.json

-23
Original file line numberDiff line numberDiff line change
@@ -88,18 +88,6 @@
8888
"src/favicon.ico"
8989
]
9090
}
91-
},
92-
"lint": {
93-
"builder": "@angular-devkit/build-angular:tslint",
94-
"options": {
95-
"tsConfig": [
96-
"src/tsconfig.app.json",
97-
"src/tsconfig.spec.json"
98-
],
99-
"exclude": [
100-
"**/node_modules/**"
101-
]
102-
}
10391
}
10492
}
10593
},
@@ -114,17 +102,6 @@
114102
"protractorConfig": "./protractor.conf.js",
115103
"devServerTarget": "angular-forms-course:serve"
116104
}
117-
},
118-
"lint": {
119-
"builder": "@angular-devkit/build-angular:tslint",
120-
"options": {
121-
"tsConfig": [
122-
"e2e/tsconfig.e2e.json"
123-
],
124-
"exclude": [
125-
"**/node_modules/**"
126-
]
127-
}
128105
}
129106
}
130107
}

src/polyfills.ts

-11
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
// import 'core-js/es6/weak-map';
3535
// import 'core-js/es6/set';
3636

37-
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
38-
// import 'classlist.js'; // Run `npm install --save classlist.js`.
39-
4037
/** IE10 and IE11 requires the following for the Reflect API. */
4138
// import 'core-js/es6/reflect';
4239

@@ -46,14 +43,6 @@
4643

4744

4845

49-
/**
50-
* Required to support Web Animations `@angular/platform-browser/animations`.
51-
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
52-
**/
53-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
54-
55-
56-
5746
/***************************************************************************************************
5847
* Zone JS is required by Angular itself.
5948
*/

src/styles.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* You can add global styles to this file, and also import other style files */
22

3-
@use '~@angular/material' as mat;
3+
@use '@angular/material' as mat;
44
@import "global-styles.scss";
55

66

src/test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ __karma__.loaded = function () {};
2222
// First, initialize the Angular testing environment.
2323
getTestBed().initTestEnvironment(
2424
BrowserDynamicTestingModule,
25-
platformBrowserDynamicTesting()
25+
platformBrowserDynamicTesting(), {
26+
teardown: { destroyAfterEach: false }
27+
}
2628
);
2729
// Then we find all the tests.
2830
const context = require.context('./', true, /\.spec\.ts$/);

0 commit comments

Comments
 (0)