How to Implement $compile(..)($scope) service inside angular 1.5 component, where $scope injectable is removed?

时间:2016-07-11 19:22:47

标签: javascript angularjs angularjs-scope angularjs-components angularjs-1.5

I am currently using Angular 1.4, in the process to shift to angular 1.5, I am rewriting all the controllers into component style and removing $scope injectables inside the controller. In one of the situation, I used $compiler service to compile dynamically generated html inside a controller in order to bind ng-click attribute to the controller scope . I got this help from the following question.

ng-click not working in dynamically created content

now how can I implement the same scenario using Angular 1.5? (I have to get rid of $scope)

0 个答案:

没有答案