Angular 10->11

This commit is contained in:
Eneko Nieto
2021-01-31 00:13:18 +01:00
parent 03d0880595
commit c8345e31bd
3 changed files with 47 additions and 39 deletions

56
package-lock.json generated
View File

@@ -245,9 +245,9 @@
}
},
"@angular/animations": {
"version": "10.2.4",
"resolved": "https://registry.npmjs.org/@angular/animations/-/animations-10.2.4.tgz",
"integrity": "sha512-ovlfHxY1C6yH6SdfWIG1WqB77GHfuJ4i3jItvf0qFSvbOHG8OOzrSOR6EVRJYTnre4r4pQ3V8cDFy3igBlWXUw==",
"version": "11.1.1",
"resolved": "https://registry.npmjs.org/@angular/animations/-/animations-11.1.1.tgz",
"integrity": "sha512-okideoWvlTz6VqHXDWKlMGj1beWxq/ag4n/+7y8IENQFgrKQWu4m52Igr5sJUfT1W8rXqLPaSGEpp9h+1SCDcQ==",
"requires": {
"tslib": "^2.0.0"
},
@@ -385,9 +385,9 @@
}
},
"@angular/common": {
"version": "10.2.4",
"resolved": "https://registry.npmjs.org/@angular/common/-/common-10.2.4.tgz",
"integrity": "sha512-bBfsLJNDQaC2OI1mReDJuSZ/uBb7Pf3HVpRmlQKNIPllIxqX1hLH8I3Plodrns9m32JMJ6FMsQthcP0KMdRCJA==",
"version": "11.1.1",
"resolved": "https://registry.npmjs.org/@angular/common/-/common-11.1.1.tgz",
"integrity": "sha512-YHAmbjmwqIv43CdzRJkXJiT7p6Xm6DpsGKLuCGPoomUk7Nf5U5LsSZm/uvyTu0O+OQp2RUFUdGqW5DzSZZnKtQ==",
"requires": {
"tslib": "^2.0.0"
},
@@ -400,9 +400,9 @@
}
},
"@angular/compiler": {
"version": "10.2.4",
"resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-10.2.4.tgz",
"integrity": "sha512-xkpDQJt9047eT+HPEoJoJ7TVN+yXIFL0EcYP9pE+jG/f7H8re6Nwf2sBXa91dyCYBanXGMRbivbXIjqLGOfzbA==",
"version": "11.1.1",
"resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-11.1.1.tgz",
"integrity": "sha512-kybGddMBL6E2BFBOHIX39VsKVxH3yD7NA1g2mQUE9KIqLAavH0KLBr8B03R9MKb6+BElGpk/5yCyCkzkwQES7w==",
"requires": {
"tslib": "^2.0.0"
},
@@ -415,11 +415,13 @@
}
},
"@angular/compiler-cli": {
"version": "10.2.4",
"resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-10.2.4.tgz",
"integrity": "sha512-gpw7Px6c2EaVUiDrU4PLaxf5zk8oJ72Yq62YZ8k4Jd7Vhl39Bhx9a9/I3GFQzZ8X6W/VJMWfZRs3E7bm1krRkw==",
"version": "11.1.1",
"resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-11.1.1.tgz",
"integrity": "sha512-9m5GHcb0UwqFRlbB079FcZcKSDaIxJQVdXWlkKpiLs9aC7aoZt+q98gFxRUVcL0/9fGeY9orsnV413JB5Z+2wQ==",
"dev": true,
"requires": {
"@babel/core": "^7.8.6",
"@babel/types": "^7.8.6",
"canonical-path": "1.0.0",
"chokidar": "^3.0.0",
"convert-source-map": "^1.5.1",
@@ -567,9 +569,9 @@
}
},
"@angular/core": {
"version": "10.2.4",
"resolved": "https://registry.npmjs.org/@angular/core/-/core-10.2.4.tgz",
"integrity": "sha512-5xpAvmZwD9nZ8eWx10urjibqEeePGEiFXVMEn3IaJWgfdOcMmeSoioW9JUllT3w85+DlNVWbRbhz0YfE9a4jyw==",
"version": "11.1.1",
"resolved": "https://registry.npmjs.org/@angular/core/-/core-11.1.1.tgz",
"integrity": "sha512-yBBLekXeDviZ+KW3DmGeOK0CK/yQ9gCy2uHY47KUDI4UTRRLz0NI5nS9NdKwk5bpCPId6ZPNsJtHPBFXRhAnNA==",
"requires": {
"tslib": "^2.0.0"
},
@@ -582,9 +584,9 @@
}
},
"@angular/forms": {
"version": "10.2.4",
"resolved": "https://registry.npmjs.org/@angular/forms/-/forms-10.2.4.tgz",
"integrity": "sha512-nrag/3+sjclH5mYqgM9UKzjotMGDCYBlPMqLt2Mj8rIxtAPRxfKmzAhxf4lRw3RTzMvOLM0rBRJagpi5glyLEw==",
"version": "11.1.1",
"resolved": "https://registry.npmjs.org/@angular/forms/-/forms-11.1.1.tgz",
"integrity": "sha512-MVysENcKonjMowdd2SxXQGcvNVpMTWVhwr5IZ2FBZKW/FNnSBq0R3nsr25zU0h8QWQHkROPtFF0+AEaENh/yAg==",
"requires": {
"tslib": "^2.0.0"
},
@@ -612,9 +614,9 @@
}
},
"@angular/platform-browser": {
"version": "10.2.4",
"resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-10.2.4.tgz",
"integrity": "sha512-gYewLxoTnxOxX3XXK959YiDaw8CEnksKIbK6RYuofIcB8dTL9AlS9/l22xdGifTXTkFjs8noO6i/WT5hCt49Ww==",
"version": "11.1.1",
"resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-11.1.1.tgz",
"integrity": "sha512-z3OmXK9viTxNp2KpGdCiFkFCI69WVYyuMQerCwjuD2oymRpltc64uujIq3+j32UJ+sTGrjMSmgMo7ReAYMp7sg==",
"requires": {
"tslib": "^2.0.0"
},
@@ -627,9 +629,9 @@
}
},
"@angular/platform-browser-dynamic": {
"version": "10.2.4",
"resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-10.2.4.tgz",
"integrity": "sha512-+oON9ujv9EOC3yJVgnV/vy3262dpMKBFlQ+dHcr5rfk2WpsnyJ26R+Nhkaug9FEdmSo9w+GqowF5bodrtTOTlA==",
"version": "11.1.1",
"resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-11.1.1.tgz",
"integrity": "sha512-fI44VfQvwzNeZdSMGZEYqYZ6Q4Y1fSbyqh2hzbhVW4/Tq6s4qKdKn3TfAD6iK6te5ewZwbccfr4Y0zMbcwTSRA==",
"requires": {
"tslib": "^2.0.0"
},
@@ -642,9 +644,9 @@
}
},
"@angular/router": {
"version": "10.2.4",
"resolved": "https://registry.npmjs.org/@angular/router/-/router-10.2.4.tgz",
"integrity": "sha512-y3xMwZHWS84fbm3FoU8vTAeXaTuPd4ZfmZ3dhkG9c1tkVq/jCmc6pkqNxjv3L1iPenKrvt2bFhh+wCs+bcUPhw==",
"version": "11.1.1",
"resolved": "https://registry.npmjs.org/@angular/router/-/router-11.1.1.tgz",
"integrity": "sha512-18jMJ/q6TYe7BHz1ScFYdkBKDHL0maAgW5o62m/B2S9oe7jmFQ2hHpp2yys37d6r12i8uvmIwLGtIrv/4yoTMQ==",
"requires": {
"tslib": "^2.0.0"
},

View File

@@ -11,16 +11,16 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~10.2.4",
"@angular/animations": "~11.1.1",
"@angular/cdk": "^10.2.7",
"@angular/common": "~10.2.4",
"@angular/compiler": "~10.2.4",
"@angular/core": "~10.2.4",
"@angular/forms": "~10.2.4",
"@angular/common": "~11.1.1",
"@angular/compiler": "~11.1.1",
"@angular/core": "~11.1.1",
"@angular/forms": "~11.1.1",
"@angular/material": "^10.2.7",
"@angular/platform-browser": "~10.2.4",
"@angular/platform-browser-dynamic": "~10.2.4",
"@angular/router": "~10.2.4",
"@angular/platform-browser": "~11.1.1",
"@angular/platform-browser-dynamic": "~11.1.1",
"@angular/router": "~11.1.1",
"angular-oauth2-oidc": "^9.2.2",
"rxjs": "~6.6.0",
"tslib": "^1.14.1",
@@ -29,7 +29,7 @@
"devDependencies": {
"@angular-devkit/build-angular": "~0.1002.1",
"@angular/cli": "^11.1.2",
"@angular/compiler-cli": "~10.2.4",
"@angular/compiler-cli": "~11.1.1",
"@types/jasmine": "~3.5.0",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1",

View File

@@ -23,9 +23,15 @@ import { TravelFormComponent } from './views/travel-form/travel-form.component';
import { NewTravelComponent } from './pages/new-travel/new-travel.component';
const ROUTING_OPTIONS: ExtraOptions = {
// preloadingStrategy: CustomPreloadingStrategy,
useHash,
initialNavigation: !useHash,
// preloadingStrategy: CustomPreloadingStrategy,
useHash,
initialNavigation: !useHash,
relativeLinkResolution: 'legacy'
}{
// preloadingStrategy: CustomPreloadingStrategy,
useHash,
initialNavigation: !useHash,
relativeLinkResolution: 'legacy'
};
@NgModule({