Hi Anshul,

Once prism has run the {{data}} content of your original element is 
replaced by a prism rendered content.
Simply calling the highlight function of prism, is just reredering the old 
content again. (prism replaces the angular binding!)
In this case you can’t do what you want without building a directive for it.
Hint, you need scope.$watch and Prism.highlight(text, grammar) in your link 
function.

If you need more help with this, just ask!
Regards
Sander
​

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to