-3

for example:
js:

var str = "this my mark {{a}} {{e}} {{i} {{o}} {{u}}, select one!";
$scope.tip = str;

html:

<p>{{tip}}</p>

how to make the output is this my mark {{a}} {{e}} {{i} {{o}} {{u}}, select one!?

Rahul Tripathi
  • 161,154
  • 30
  • 262
  • 319
li.mama
  • 1
  • 2

1 Answers1

2

Add ngNonBindable attribute to the element who's content you don't want to be compiled or bind.

Charlie
  • 21,138
  • 10
  • 54
  • 85
  • thanks a lot! I have to use a inefficient method: `string.replace(/{/g, '{&shy').replace(/}/g, '}&shy')`, now I can deal it with `'+string+'` – li.mama Jun 13 '16 at 08:12