<!DOCTYPE?html>
<html>
<head>
<meta?charset="utf-8">
<script?src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>?
</head>
<body??ng-app="myApp"?ng-controller="myCtrl">
<div>
<a?href="sip:{{tel}}@meetex.me"?class="link-info">clickMe</a>
<a?href="callto{{tel}}"?class="link-info">點(diǎn)我</a>
</div>
<script>
var?app?=?angular.module("myApp",?["ng"]);
app.config(['$compileProvider',function($compileProvider){
$compileProvider.urlSanitizationWhitelist(/^\s*((https?|ftp|mailto|tel|sip|callto):)|#/);
}])
app.controller("myCtrl",?function($scope)?{
$scope.tel=101000;
???
});
</script>
</body>
</html>注:項(xiàng)目中要使用a的href屬性調(diào)用用戶端polycom公司的視頻會(huì)議app(寶利通)然后自動(dòng)進(jìn)入會(huì)議。執(zhí)行上面這些代碼時(shí)一直出現(xiàn)=》Uncaught Error: [$injector:modulerr]?我看了好多資料,試了好方法一直也沒(méi)有弄出是什么原因。麻煩各位測(cè)試下,幫我看看是什么問(wèn)題。
$compileProvider的使用時(shí)莫名報(bào)$injector:modulerr
慕前端8664132
2017-05-27 14:54:58