AngularJs ,ngSanitize and ngRoute don't work together

568 views Asked by At

I have a question about ngRoute.If when I wrote as follows there is not a problem

index.html

<div ng-app="linkyDemo">
<div ng-controller="Ctrl" ng-bind-html="text| linky"></div></div>

app.js

var app = angular.module('app', ['ngSanitize'])
function Ctrl($scope) {
$scope.text= 'http://absdef.com';
}

But when I use ngRoute directive like as

var app = angular.module('app', ['ngRoute', 'ngSanitize']);

linky filter doesn't work. How can I solve this problem?

0

There are 0 answers