This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Infinite $digest Loop when using $sce with filter #3980
Closed
Description
This example http://jsfiddle.net/FmeP9/ produce Error: [$rootScope:infdig] using this code:
filter('markdown', function ($sce) {
var converter = new Showdown.converter();
return function (value) {
var html = converter.makeHtml(value || '');
return $sce.trustAsHtml(html);
};
});
It is working but i think perfomnce will go down if those error shows up.