Adding an ng-click event inside a filter

前端 未结 1 1707
小蘑菇
小蘑菇 2020-12-19 02:36

I\'m fairly new to Angular but I\'ve been using it the past few weeks and have managed to work out most of the problems I\'ve come across. This one however has me stumped.

相关标签:
1条回答
  • 2020-12-19 03:05

    Well you are correct that the html\content that you emit needs to be compiled for angularjs to resolve the alert function.

    I have changed your plunker, and inject a compile directive (from here)

    See it in action here

    The basic idea here is to compile the content produced from twitter feed dynamically.

    <p compile="tweet.text | convertLinks"></p>
    
    0 讨论(0)
提交回复
热议问题