Agent Zebra
Agent Zebra

Reputation: 4550

ngSantize not working correctly with ng-bind-html

ngSantize not working right now, <ul ng-bind-html="{{group.content}}"></ul> is blank when there should be content in there. When you open Dynamic Group Header - 2 it should say

  • Dynamic Group Body - 2
  • But it's blank. What am I doing wrong here?

    Here's a plunkr: http://plnkr.co/edit/SOFFK6cdianFADhoWoIJ?p=preview

    Upvotes: 2

    Views: 183

    Answers (1)

    Daniel Perez
    Daniel Perez

    Reputation: 6903

    ng-bind-html expects an expression so this should be

    <ul ng-bind-html="group.content"></ul>
    

    Upvotes: 1

    Related Questions