Skip to content
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
@johaa1993

Description

@johaa1993

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions