如何以警报离子角度显示模板?

问题描述

我想在ionicalert显示模板。目前,我正在传递这样的数据

MyAlert.show($scope.translate('ORDER_N_ORDERED')
.replace('_order_id_',order.id))
.then(function () {
    stopNotificationSound(order.id);
}); 

代码正在显示alert

_factories.factory('MyAlert',function ($ionicPopup,$rootScope,$q) {
    return {
        show : showAlert,}; 

function showAlert(msg) {
        $(':focus').blur();
       
        if (!$rootScope.arabic_rtl) {
            alertPopup = $ionicPopup.alert({
                title : (!ADDONS.web_template)?((ADDONS.template.indexOf('bot') == -1)?$rootScope.MLanguages.MOBILE_APPNAME:$rootScope.MLanguages.BOT_APPNAME):$rootScope.MLanguages.WEB_APPNAME,template: '<center>'+msg+'</center>',okText: $rootScope.MLanguages.MOBILE_FOURTH_PAGE_OK
            });
        } 
      
    }

现在我要显示完整的离子模板,而不是template: '<center>'+msg+'</center>'

<ion-item class="padding-5 no-border" data-ng-repeat="product in order.products track by $index">
    <div class="food-cont color-font-dark">
        <div class="float-left badge-cont">{{product.quantity}}</div>
        <span class="float-left">{{product.name}}</span>
        
        
        <span class="omit" data-ng-if="product.comment">
            <strong>{{translate('COMMENTS')}}</strong><br>
            {{product.comment}}
        </span>
    </p>
    <div class="h-line-grey"></div>
</ion-item>

我该怎么做?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)