From 4852b4a3a4891de4fd617a3404a873cb416c066c Mon Sep 17 00:00:00 2001 From: jgw96 Date: Tue, 7 Mar 2017 12:36:19 -0600 Subject: [PATCH] chore(angular): fix deprecation warnings and breaking changes --- src/components/alert/alert-component.ts | 12 ++++++------ src/components/app/app.ts | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/alert/alert-component.ts b/src/components/alert/alert-component.ts index 3c17c7834d..ec79700cb7 100644 --- a/src/components/alert/alert-component.ts +++ b/src/components/alert/alert-component.ts @@ -26,7 +26,7 @@ import { ViewController } from '../../navigation/view-controller'; '
' + '
' + - '' + + '' + - '' + + '' + - '' + + '' + '
' + '
' + diff --git a/src/components/app/app.ts b/src/components/app/app.ts index 11dbc8be28..11e47c8615 100644 --- a/src/components/app/app.ts +++ b/src/components/app/app.ts @@ -1,5 +1,5 @@ import { EventEmitter, Injectable, Optional } from '@angular/core'; -import { Title } from '@angular/platform-browser'; +import { Title, DOCUMENT } from '@angular/platform-browser'; import { IonicApp } from './app-root'; import * as Constants from './app-constants'; @@ -27,7 +27,7 @@ export class App { private _disTime: number = 0; private _scrollTime: number = 0; private _title: string = ''; - private _titleSrv: Title = new Title(); + private _titleSrv: Title = new Title(DOCUMENT); private _rootNav: NavController = null; private _disableScrollAssist: boolean;