Closed developcreativo closed 7 years ago
export function TrustHtmlFilter($sce) {
return function(html) {
return $sce.trustAsHtml(html);
};
}
TrustHtmlFilter.$inject = ['$sce'];
Fix
H @vdjkelly Thanks for reporting this bug.
I just fixed it by adding the missing 'ngInject'
which takes care of annotating dependency injection
export function TrustHtmlFilter($sce) {
'ngInject';
return function(html) {
return $sce.trustAsHtml(html);
};
}
TrustHtmlFilter is not using explicit annotation and cannot be invoked in strict mode