chore(): update to angular 7

This commit is contained in:
Manu Mtz.-Almeida
2018-11-12 15:47:07 +01:00
committed by Manu MA
parent 5d0050157e
commit 3ac05214f1
6 changed files with 15 additions and 17 deletions

View File

@@ -47,20 +47,20 @@
"@ionic/core": "4.0.0-beta.15"
},
"devDependencies": {
"@angular/common": "^6.1.0",
"@angular/compiler": "^6.1.0",
"@angular/compiler-cli": "^6.1.0",
"@angular/core": "^6.1.0",
"@angular/forms": "^6.1.0",
"@angular/platform-browser": "^6.1.0",
"@angular/platform-browser-dynamic": "^6.1.0",
"@angular/router": "^6.1.0",
"@angular/common": "^7.0.3",
"@angular/compiler": "^7.0.3",
"@angular/compiler-cli": "^7.0.3",
"@angular/core": "^7.0.3",
"@angular/forms": "^7.0.3",
"@angular/platform-browser": "^7.0.3",
"@angular/platform-browser-dynamic": "^7.0.3",
"@angular/router": "^7.0.3",
"fs-extra": "^7.0.0",
"glob": "^7.1.2",
"rxjs": "^6.2.0",
"tslint": "^5.10.0",
"tslint-ionic-rules": "0.0.17",
"typescript": "2.9.2",
"typescript": "3.1.6",
"zone.js": "^0.8.26"
}
}

View File

@@ -25,8 +25,6 @@ const DECLARATIONS = [
d.CardTitle,
d.Checkbox,
d.Chip,
d.ChipButton,
d.ChipIcon,
d.Col,
d.Content,
d.Datetime,

View File

@@ -89,9 +89,9 @@ export class NavController {
}
private guessDirection() {
const index = this.stack.indexOf(document.location.href);
const index = this.stack.indexOf(document.location!.href);
if (index === -1) {
this.stack.push(document.location.href);
this.stack.push(document.location!.href);
return 1;
} else if (index < this.stack.length - 1) {
this.stack = this.stack.slice(0, index + 1);