-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for template url #24
base: master
Are you sure you want to change the base?
Conversation
attribute: template-url="'myTemplateUrl'"
attribute: template-url="'myTemplateUrl'"
attribute: template-url="'myTemplateUrl'"
attribute: template-url="'myTemplateUrl'"
attribute: template-url="'myTemplateUrl'"
attribute: template-url="'myTemplateUrl'"
@@ -1,7 +1,7 @@ | |||
# angular-bind-html-compile | |||
This repo contains a bower package that provides an angular directive which can be passed trusted html with angular template content to evaluate. | |||
|
|||
The `bind-html-compile` directive allows for HTML containing directives to be compiled. | |||
The `bind-html-compile` directive allows for HTML containing **custom** directives to be compiled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that this change is needed, since it doesn't matter if these are custom or angular core directives
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"custom" taken out
``` | ||
|
||
If the `data.content` contained a directive, it would not be compiled. | ||
(Unlike the standard `ng-bind-html`, `bind-html-compile` compiles directives, and even those custom ones.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again adding the information about "custom directives" is probably too much
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"custom" taken out
Could you please add more meaningful names to your commits? |
Sorry for the misleading about my several commits. Actually the other repeated ones were only to fix the styling warnings. |
code has been implemented to support template files:
<div bind-html-compile template-url="data.templateUrl"></div>
knowing that both attributes still work together:
<div bind-html-compile="data.content" template-url="data.templateUrl"></div>