updating angular core and cli

step 1 of update Angular 10 -> 11
This commit is contained in:
2020-11-23 11:31:45 +01:00
parent 96bf08431f
commit 398774dbd8
15 changed files with 618 additions and 1197 deletions

View File

@@ -16,10 +16,7 @@ const routes: Routes = [
@NgModule({
imports: [
RouterModule.forRoot(
routes,
//{ enableTracing: true } // <-- debugging purposes only
)
RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' })
],
//declarations: [VisualizationPageComponent],
declarations: [],

View File

@@ -1,9 +1,9 @@
import { TestBed, async } from '@angular/core/testing';
import { TestBed, waitForAsync } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { GalleryViewComponent } from './gallery-view.component';
@@ -6,7 +6,7 @@ describe('GalleryViewComponent', () => {
let component: GalleryViewComponent;
let fixture: ComponentFixture<GalleryViewComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ GalleryViewComponent ]
})

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { HelpPageComponent } from './help-page.component';
@@ -6,7 +6,7 @@ describe('HelpPageComponent', () => {
let component: HelpPageComponent;
let fixture: ComponentFixture<HelpPageComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ HelpPageComponent ]
})

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { ImageToggleComponent } from './image-toggle.component';
@@ -6,7 +6,7 @@ describe('ImageToggleComponent', () => {
let component: ImageToggleComponent;
let fixture: ComponentFixture<ImageToggleComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ ImageToggleComponent ]
})

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { LimitByComponent } from './limit-by.component';
@@ -6,7 +6,7 @@ describe('LimitByComponent', () => {
let component: LimitByComponent;
let fixture: ComponentFixture<LimitByComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ LimitByComponent ]
})

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { MainPageComponent } from './main-page.component';
@@ -6,7 +6,7 @@ describe('MainPageComponent', () => {
let component: MainPageComponent;
let fixture: ComponentFixture<MainPageComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ MainPageComponent ]
})

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { PlotViewComponent } from './plot-view.component';
@@ -6,7 +6,7 @@ describe('PlotViewComponent', () => {
let component: PlotViewComponent;
let fixture: ComponentFixture<PlotViewComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ PlotViewComponent ]
})

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { QueryAutocompleteComponent } from './query-autocomplete.component';
@@ -6,7 +6,7 @@ describe('QueryAutocompleteComponent', () => {
let component: QueryAutocompleteComponent;
let fixture: ComponentFixture<QueryAutocompleteComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ QueryAutocompleteComponent ]
})

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { UploadPageComponent } from './upload-page.component';
@@ -6,7 +6,7 @@ describe('UploadPageComponent', () => {
let component: UploadPageComponent;
let fixture: ComponentFixture<UploadPageComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ UploadPageComponent ]
})

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { VisualizationPageComponent } from './visualization-page.component';
@@ -6,7 +6,7 @@ describe('VisualizationPageComponent', () => {
let component: VisualizationPageComponent;
let fixture: ComponentFixture<VisualizationPageComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ VisualizationPageComponent ]
})

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { YAxisDefinitionComponent } from './y-axis-definition.component';
@@ -6,7 +6,7 @@ describe('YAxisDefinitionComponent', () => {
let component: YAxisDefinitionComponent;
let fixture: ComponentFixture<YAxisDefinitionComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ YAxisDefinitionComponent ]
})