2
嗨我使用離子創建一個簡單的彈出。這裏我不能在點擊按鈕後顯示彈出信息。我不知道在哪裏,我要去錯了,請幫我在顯示彈出。而即時得到錯誤
ionic.bundle.js:26794 TypeError: Cannot read property 'show' of undefined
at Scope.$scope.showPopup
angular.module('CarWash',[$ionic]).controller('popSelect',['$scope',function($scope,$ionicPopup){
$scope.data={};
$scope.showPopup = function() {
$ionicPopup.show({
title:'select car wash',
template: "Hello customer !!!",
});
alertpop.then(function(res){
console.log('Inside pop-up');
非常感謝!它工作! :) – sree
@sree高興地幫助你,謝謝:-) –
我在離子列表中有疑問,你可以幫我嗎。 – sree