How to bind an AngularJS controller to dynamically added HTML?

后端 未结 6 611
清歌不尽
清歌不尽 2020-12-03 02:13

For this scenario, I have a page of HTML with some AngularJS directives, controllers, etc.

Something like this:



  
6条回答
  •  再見小時候
    2020-12-03 02:26

    I had the same problem. This worked for me: https://docs.angularjs.org/api/ng/function/angular.injector

提交回复
热议问题