Html element with AngularJS attribute generate after init AngularJS -


i've angularjs issue when there elements(button) generate dynamically or generate after init angularjs. source code below shows button not able trigger ng-click attribute. ideas can trigger angularjs attribute after init angularjs. thanks.

 operationformatter: function (value, row) {     var operations = [];      operations.push('<button class="btn-mini glyphicon glyphicon-edit" ng-                 click="myfunc()" title="shared_edit"></button>');      return operations.join(' '); // function can execute after init angularjs due  conditions. }  $(function () { myctrl();    })  function myctrl($scope) { var app = angular.module("appaffiliateinfo", []); app.controller("ctrlbankinfo", function ($scope) {     $scope.myfunc = function () {         alert('ok');     }; }); }; 


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -