У меня есть ошибка ниже, когда я пытаюсь показать уведомление всплывающее окно После нажатия на кнопку:Использование Popups в ионическом 2
EXCEPTION: TypeError: Cannot read property 'length' of undefined in [null] ORIGINAL EXCEPTION: TypeError: Cannot read property 'length' of undefined
Это мой код:
popups.html:
<ion-content padding class="getting-started">
<button primary (click)="showAlertPopup()">Alert</button>
</ion-content>
popups.js
import {Page, NavController, Popup} from 'ionic/ionic';
@Page({
templateUrl: 'app/popups/popups.html'
})
export class PopupsPage {
constructor(nav: NavController, popup: Popup) {
this.nav = nav;
this.popup = popup;
}
showAlertPopup(){
this.popup.alert({
title: 'Ionic Popup',
template: 'This is alert popup'
});
}
}
Какой-то совет?
Popup не решен в ionic2 –