Skip to content

Commit 821d4b4

Browse files
angular update
1 parent a753088 commit 821d4b4

File tree

9 files changed

+3218
-4554
lines changed

9 files changed

+3218
-4554
lines changed

angular.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"optimization": true,
4444
"outputHashing": "all",
4545
"sourceMap": false,
46-
"extractCss": true,
4746
"namedChunks": false,
4847
"extractLicenses": true,
4948
"vendorChunk": false,

package-lock.json

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

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,32 @@
1212
},
1313
"private": true,
1414
"dependencies": {
15-
"@angular/animations": "~10.2.5",
16-
"@angular/common": "~10.2.5",
17-
"@angular/compiler": "~10.2.5",
18-
"@angular/core": "~10.2.5",
19-
"@angular/forms": "~10.2.5",
20-
"@angular/platform-browser": "~10.2.5",
21-
"@angular/platform-browser-dynamic": "~10.2.5",
22-
"@angular/router": "~10.2.5",
15+
"@angular/animations": "~11.2.14",
16+
"@angular/common": "~11.2.14",
17+
"@angular/compiler": "~11.2.14",
18+
"@angular/core": "~11.2.14",
19+
"@angular/forms": "~11.2.14",
20+
"@angular/platform-browser": "~11.2.14",
21+
"@angular/platform-browser-dynamic": "~11.2.14",
22+
"@angular/router": "~11.2.14",
2323
"bootstrap": "^4.4.1",
2424
"express": "^4.17.1",
2525
"rxjs": "~6.5.5",
2626
"tslib": "^2.0.0",
2727
"zone.js": "~0.10.2"
2828
},
2929
"devDependencies": {
30-
"@angular-devkit/build-angular": "~0.1002.3",
31-
"@angular/cli": "~10.2.3",
32-
"@angular/compiler-cli": "~10.2.5",
33-
"@angular/language-service": "~10.2.5",
30+
"@angular-devkit/build-angular": "~0.1102.15",
31+
"@angular/cli": "~11.2.15",
32+
"@angular/compiler-cli": "~11.2.14",
33+
"@angular/language-service": "~11.2.14",
3434
"@types/node": "^12.11.1",
35-
"@types/jasmine": "~3.3.8",
35+
"@types/jasmine": "~3.6.0",
3636
"@types/jasminewd2": "~2.0.3",
37-
"codelyzer": "^5.1.2",
38-
"jasmine-core": "~3.5.0",
37+
"codelyzer": "^6.0.0",
38+
"jasmine-core": "~3.6.0",
3939
"jasmine-spec-reporter": "~5.0.0",
40-
"karma": "~5.0.0",
40+
"karma": "~6.3.8",
4141
"karma-chrome-launcher": "~3.1.0",
4242
"karma-coverage-istanbul-reporter": "~3.0.2",
4343
"karma-jasmine": "~4.0.0",

src/app/app.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { TestBed, async } from '@angular/core/testing';
1+
import { TestBed, waitForAsync } from '@angular/core/testing';
22
import { AppComponent } from './app.component';
33

44
describe('AppComponent', () => {
5-
beforeEach(async(() => {
5+
beforeEach(waitForAsync(() => {
66
TestBed.configureTestingModule({
77
declarations: [
88
AppComponent

src/app/app.module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ import { ValidateUserNameDirective } from './directives/validate-user-name.direc
2828
ReactiveFormsModule,
2929
BrowserModule,
3030
RouterModule.forRoot([
31-
{ path: '', component: HomeComponent },
32-
{ path: 'reactive-form', component: ReactiveFormComponent },
33-
{ path: 'template-form', component: TemplateDrivenFormComponent },
34-
]),
31+
{ path: '', component: HomeComponent },
32+
{ path: 'reactive-form', component: ReactiveFormComponent },
33+
{ path: 'template-form', component: TemplateDrivenFormComponent },
34+
], { relativeLinkResolution: 'legacy' }),
3535
],
3636
providers: [],
3737
bootstrap: [AppComponent]

src/app/home/home.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
1+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
22

33
import { HomeComponent } from './home.component';
44

55
describe('HomeComponent', () => {
66
let component: HomeComponent;
77
let fixture: ComponentFixture<HomeComponent>;
88

9-
beforeEach(async(() => {
9+
beforeEach(waitForAsync(() => {
1010
TestBed.configureTestingModule({
1111
declarations: [ HomeComponent ]
1212
})

src/app/nav-bar/nav-bar.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
1+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
22

33
import { NavBarComponent } from './nav-bar.component';
44

55
describe('NavBarComponent', () => {
66
let component: NavBarComponent;
77
let fixture: ComponentFixture<NavBarComponent>;
88

9-
beforeEach(async(() => {
9+
beforeEach(waitForAsync(() => {
1010
TestBed.configureTestingModule({
1111
declarations: [ NavBarComponent ]
1212
})

src/app/reactive-form/reactive-form.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
1+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
22

33
import { ReactiveFormComponent } from './reactive-form.component';
44

55
describe('ReactiveFormComponent', () => {
66
let component: ReactiveFormComponent;
77
let fixture: ComponentFixture<ReactiveFormComponent>;
88

9-
beforeEach(async(() => {
9+
beforeEach(waitForAsync(() => {
1010
TestBed.configureTestingModule({
1111
declarations: [ ReactiveFormComponent ]
1212
})

src/app/template-driven-form/template-driven-form.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
1+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
22

33
import { TemplateDrivenFormComponent } from './template-driven-form.component';
44

55
describe('TemplateDrivenFormComponent', () => {
66
let component: TemplateDrivenFormComponent;
77
let fixture: ComponentFixture<TemplateDrivenFormComponent>;
88

9-
beforeEach(async(() => {
9+
beforeEach(waitForAsync(() => {
1010
TestBed.configureTestingModule({
1111
declarations: [ TemplateDrivenFormComponent ]
1212
})

0 commit comments

Comments
 (0)