Skip to content

msaltzman/angular-bind-html-compile

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bind-html-compile allows for HTML containing directives to be compiled.

You should only use this directive where the content is coming from a trusted source.

ng-bind-html:

<div ng-bind-html="data.content"></div>

If the data.content contained a directive, it would not be compiled.

bind-html-compile:

<div bind-html-compile="data.content"></div>

About

Directive that calls $compile on trusted HTML, allowing directives in an API response.

Resources

License

Stars

Watchers

Forks

Packages

No packages published