Skip to content

Commit 34f1fb9

Browse files
committed
Update Angular 11.0.0
1 parent ab2ba96 commit 34f1fb9

16 files changed

+13869
-52
lines changed

.browserslistrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ last 2 Edge major versions
1414
last 2 Safari major versions
1515
last 2 iOS major versions
1616
Firefox ESR
17-
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line.
1817
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
# dependencies
1111
/node_modules
12-
package-lock.json
13-
1412

1513
# profiling files
1614
chrome-profiler-events*.json

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<p align="center">
22
<h1 align="center">Angular Example Lazy loading</h1>
33
<p align="center">
4-
Example with Angular 10.2.2 & Angular CLI 10.2.0
4+
Example with Angular 11.0.0 & Angular CLI 11.0.0
55
<br>
66
<br>
77
<a href="https://demo.ganatan.com/angular-example-lazy-loading">
@@ -33,7 +33,7 @@ in your browser go to [http://localhost:4200](http://localhost:4200)
3333
# Tutorial
3434

3535
<p align="center">
36-
<h3 align="center">Angular 10 Example Lazy loading Tutorial</h3>
36+
<h3 align="center">Angular 11 Example Lazy loading Tutorial</h3>
3737

3838
<p align="center">
3939
Step-by-step Tutorials

angular.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"optimization": true,
4040
"outputHashing": "all",
4141
"sourceMap": false,
42-
"extractCss": true,
4342
"namedChunks": false,
4443
"extractLicenses": true,
4544
"vendorChunk": false,
@@ -119,6 +118,7 @@
119118
}
120119
}
121120
}
122-
}},
121+
}
122+
},
123123
"defaultProject": "angular-starter"
124124
}

e2e/protractor.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ exports.config = {
1616
browserName: 'chrome'
1717
},
1818
directConnect: true,
19+
SELENIUM_PROMISE_MANAGER: false,
1920
baseUrl: 'http://localhost:4200/',
2021
framework: 'jasmine',
2122
jasmineNodeOpts: {

e2e/src/app.e2e-spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ describe('workspace-project App', () => {
88
page = new AppPage();
99
});
1010

11-
it('should display welcome message', () => {
12-
page.navigateTo();
13-
expect(page.getTitleText()).toEqual('angular-starter');
11+
it('should display welcome message', async () => {
12+
await page.navigateTo();
13+
expect(await page.getTitleText()).toEqual('angular-starter');
1414
});
1515

1616
afterEach(async () => {

e2e/src/app.po.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { browser, by, element } from 'protractor';
22

33
export class AppPage {
4-
navigateTo(): Promise<unknown> {
5-
return browser.get(browser.baseUrl) as Promise<unknown>;
4+
async navigateTo(): Promise<unknown> {
5+
return browser.get(browser.baseUrl);
66
}
77

8-
getTitleText(): Promise<string> {
8+
async getTitleText(): Promise<string> {
99
return element(by.css('app-root h1')).getText() as Promise<string>;
1010
}
1111
}

e2e/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"target": "es2018",
88
"types": [
99
"jasmine",
10-
"jasminewd2",
1110
"node"
1211
]
1312
}

karma.conf.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,19 @@ module.exports = function (config) {
99
require('karma-jasmine'),
1010
require('karma-chrome-launcher'),
1111
require('karma-jasmine-html-reporter'),
12-
require('karma-coverage-istanbul-reporter'),
12+
require('karma-coverage'),
1313
require('@angular-devkit/build-angular/plugins/karma')
1414
],
1515
client: {
1616
clearContext: false // leave Jasmine Spec Runner output visible in browser
1717
},
18-
coverageIstanbulReporter: {
18+
coverageReporter: {
1919
dir: require('path').join(__dirname, './coverage/angular-starter'),
20-
reports: ['html', 'lcovonly', 'text-summary'],
21-
fixWebpackSourcePaths: true
20+
subdir: '.',
21+
reporters: [
22+
{ type: 'html' },
23+
{ type: 'text-summary' }
24+
],
2225
},
2326
reporters: ['progress', 'kjhtml'],
2427
port: 9876,

0 commit comments

Comments
 (0)