ng-click doesn't fire when added post load

后端 未结 3 2010
夕颜
夕颜 2020-12-19 02:40

I\'m trying to do a variable replacement while also making it clickable with ngClick.

I made a plunker demo (click the button and observe that the input box stays un

3条回答
  •  臣服心动
    2020-12-19 03:36

    You created an element outside of angular. I'm not sure how pascalprescht works but you're going to need to tell the element to $compile (docs)

提交回复
热议问题