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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

IbrahimHd
Copy link

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>

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.
Copy link
Collaborator

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

Copy link
Author

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.)
Copy link
Collaborator

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"custom" taken out

@wytrych
Copy link
Collaborator

wytrych commented Dec 5, 2016

Could you please add more meaningful names to your commits?

@IbrahimHd
Copy link
Author

Sorry for the misleading about my several commits. Actually the other repeated ones were only to fix the styling warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants