-
Notifications
You must be signed in to change notification settings - Fork 176
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
Add $compile to output html #184
Conversation
hmmm.. this doesn't pass the test. may need more time to look at this. |
@@ -387,7 +388,7 @@ | |||
if (element.attr('no-validation-message')) { | |||
messageElem.css('display', 'none'); | |||
} else if ($validationProvider.showSuccessMessage && messageToShow) { | |||
messageElem.html($validationProvider.getSuccessHTML(messageToShow)); | |||
messageElem.html('').append($compile($validationProvider.getSuccessHTML(messageToShow))(scope)); |
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.
Should it be messageElem.append($compile($validationProvider.getSuccessHTML(messageToShow))(scope));
?
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.
Step1: clear the output html => .html('')
Step2: append a new html element => .append(elm)
not a very smart solution but it have no other answers yet 💥
Alright. How about |
@lvarayut I have tried that before 8eb0a6f It will fail because |
It just seems a little bit strange at the first glance. BTW. it' worked perfectly 👍 |
Yes, exactly. |
I have added the test case for the compilation, hope we can trust it 😄 |
Ah great, it's been merged. Thanks guys! |
👍 @jamhall You can have your repo up to date. |
No description provided.