-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
  • 168,305
  • 31
  • 280
  • 331
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
  • 22,886
  • 11
  • 59
  • 90
  • 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