Yes, normally datatable Ajax file call outside of AngularJs folder structure, If you define ng-click there then it’s not working in AngularJs.
Finally I find a best solution for AngularJs ng-click working with datatable.
Below is simple example for any Edit / Delete link:
<button onclick=\"angular.element(this).scope().recordEdit('".$id."')\">Edit</button>
In above example recordEdit is function which you can used in main js like $scope.recordEdit() function.
Enjoy!
Hi,
ReplyDeleteThank for help full post its save my time and money,
I have a question like if I want to edit record then how automatically assign all value to form?
Can you give main app.js function code where you write this $scope.recordEdit() function?
:)
Thanks for the helpful information shared with us.
ReplyDeleteBitcoin payment for e commerce development | Pay Bitcoin for Ecommerce Development | web design Hubli
YOU ARE A HERO. DON'T MATTER WHAT THEY SAY.
ReplyDeleteThanks. It is really helpful.
ReplyDeleteThanks, you saved my day..
ReplyDeletethank you so much, you save my time..
ReplyDeleteyour code work with my laravel datatable with angular.
so helpful really..
many thanks!