0
我正在使用AngularJS构建带有Ionic的移动应用程序。链接无法在移动设备上使用ng-bind-html
在一些视图中,我想绑定具有多个链接的HTML代码,但某种程度上它不适用于移动设备。
在浏览器中,它的工作原理非常完美,但是在移动设备上,链接无法点击。
文字,我想结合:
"Some text <a href="http://www.test.com" target="_blank">http://www.test.com</a>"
我的HTML代码:
<p ng-bind-html="testDetails"></p>
$消毒可用,ngSanitize已添加作为一个依赖
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular-sanitize.js"></script>
var appControllers = angular.module('starter.controllers', ['ngSanitize']); // Use for all controller of application.
任何理念?