ionic弹窗$ionicPopup问题

542420552@qq.com 87个月前 提问
0

最近才接触ionic不知道其当中的弹窗,$ionicPopup.show({

templateUrl:这里需要怎么写?

}),然后定义的内容模板需要怎么写,需要<div ui-view></div>吗?

下面是的我得编写方式,就是显示不了主题内容。html是利用的jade编写后转译的,目录在

var myPopup = $ionicPopup.show({
templateUrl: 'www/templates/popUp/authenticationPop.html',
title: '请选择认证类型',
//subTitle: '账号注册已完成,立即登录?',
scope: $scope,
buttons: [
{ text: '取消',type:'button-small' },
{text: '确定',
type: 'button-small',
onTap: function() {
console.log("认证值______________",$scope.choice);
var prompt=$ionicPopup.show({
template:'<i class="icon ion-ios-checkmark"></i>',
title:'提示',
subTitle:'申请认证已提交,正等待审核',
scope:$scope,
});
prompt.then(function(){

});
$timeout(function(){
prompt.close();
},3000);
}
},
]
});
myPopup.then(function(res) {
console.log('Tapped!', res);
});
ion-list
ion-radio(ng-repeat="item in authenticationList" ng-model="date.choices" ng-value="item.value") {{item.text}}