Tuesday 15 March 2011

fonts - returning formatted String via AngularJS {{ }} -


I try to get a formatted string through HTML through a function via an AngularJS {{curly brackets}} I am doing

In HTML, you have:

  & lt; Center & gt; {{Italics please ()}} & lt; / Center & gt;   

And in your fingers javascript, you have this method:

  $ scope.italicsPlease = function () {Return "I'm italicized". ); }   

What do you get in HTML, in fact ...

    

This is not formatted in italic but the string actually contains tags

how can you get it so that you are actually Find a formatted string in?

This works,

    

Thanks for your reply Thanks for your reference Stewie (my question is lack of search skills).

No comments:

Post a Comment