綁定的數據,我需要用方括號括綁定數據值,因此它會顯示如下:angularjs用方括號括
[someValue中] 我已經像這樣做:
[<span ng-bind="person.id"></span>]
我能做到這一點很好,但我遇到了一個問題,當我嘗試將其應用到具有限值潛水,如:
<div ng-bind-html="anotherValue | trustAsHtml"></div>
我希望[someValue中]至t內出現他anotherValue格,但是當我嘗試下面的代碼是不顯示的第二個值:
<div ng-bind-html="anotherValue | trustAsHtml"> [<span ng-bind="person.id"></span>]</div>
我是新來angularjs所以我可能做一些愚蠢的完全,我道歉,如果是這樣的話,謝謝。
那好吧我感謝pyerwin。在這種情況下,我會找到一種解決方法,讓它顯示我的想法。 – user2928010