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.
任何理念?