당신은, 실행 방법에서 더 많은 정보를 그것을 할 수 Ionic PopUp Service
.run(function($window, $rootScope, $cordovaNetwork, $ionicPopup) {
if ($cordovaNetwork.isOffline()) {
var myPopup = $ionicPopup.show({
template: '<b>Hello!</b>',
title: 'Internet lost',
subTitle: 'Connection lost',
scope: $scope,
buttons: [
{ text: 'Cancel' }, {
text: '<b>Ok</b>',
type: 'button-positive',
onTap: function(e) {
//click Ok button
}
}
]
});
}
)}
또는
$ionicModal.fromTemplateUrl('templates/internet_info.html', {
scope: $scope
}).then(function(modal) {
$scope.modal = modal;
});
$scope.closeInternetInfo = function() {
$scope.modal.hide();
};
// Open the login modal
$scope.OpenInternetInfo = function() {
$scope.modal.show();
};
귀하의 템플릿이 같은해야한다 : 무엇을
<ion-modal-view>
<ion-header-bar>
<h1 class="title">Internet</h1>
<div class="buttons">
</div>
</ion-header-bar>
<ion-content>
</ion-content>
</ion-modal-view>
"디스플레이 템플릿 파일"을 의미합니까? 네트워크 플러그인의 결과 이제까지 원하는 것을 할 수 있습니다 ... –
팝업에 메시지를 표시하는 대신 템플릿 파일 (HTML 파일)을 표시하고 싶습니다 팝업에서 메시지를 표시하는 대신 –