How do I escape curly braces for display on page when using AngularJS?

后端 未结 8 1479
醉话见心
醉话见心 2020-11-27 02:28

I want the user to see double curly braces, but Angular binds them automatically. This is the opposite case of this question where they want to not see curly braces used fo

8条回答
  •  春和景丽
    2020-11-27 03:01

    I wanted single brackets across text and the above solutions didn't work for me. So did want the Angular recommended.

    Angular Version: 5

    Required Text: My name is {person.name}.

    My name is {{'{'}}person.name{{'}'}}.
    

    I hope it helps someone.

提交回复
热议问题