You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, I'd like to thank you for your work. Then gripe or contribute, whichever you deem this. Maybe I just didn't know the proper way to do this it.
I’m attempting to set an error with a bit of html in (simple ).
That goes to the module defined directive of {{alert.msg}}. The alert directive transcludes into another template. Any html I output into that stays html. I’ve tried ng-bind-html on the directive itself: . That works for outputting html correctly, but it destroys the transcluded content additions. I tried doing something like {{$sce.trustAsHtml(testHtml)}}, but that isn’t even evaluated. Comes out as a literal string. Perhaps the template needs to be hit by $compile again to do that?
But, in the mean time modified the directive and template instead:
By placing the message into the scope via attribute, the interior transclude can be replaced with ng-bind-html.
Hello!
First, I'd like to thank you for your work. Then gripe or contribute, whichever you deem this. Maybe I just didn't know the proper way to do this it.
I’m attempting to set an error with a bit of html in (simple
).
That goes to the module defined directive of {{alert.msg}}. The alert directive transcludes into another template. Any html I output into that stays html. I’ve tried ng-bind-html on the directive itself: . That works for outputting html correctly, but it destroys the transcluded content additions. I tried doing something like {{$sce.trustAsHtml(testHtml)}}, but that isn’t even evaluated. Comes out as a literal string. Perhaps the template needs to be hit by $compile again to do that?
But, in the mean time modified the directive and template instead:
By placing the message into the scope via attribute, the interior transclude can be replaced with ng-bind-html.
What would be a more proper solution to this issue, without changing the library itself?
The text was updated successfully, but these errors were encountered: