Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

agGrid AngularJS 1.x examples are not working

During evaluation of agGrid by using AngularJS. I've found that on agGrid Documentation examples of AngularJS are not working. I've found exception on Internet Explorer console:

Failed to instantiate module agGrid due to: Error: [$injector:nomod] Module 'agGrid' is not available!

Can anybody fix that example, so we can explore this control thoroughly?

like image 688
Abu Sufyan Avatar asked May 19 '26 09:05

Abu Sufyan


1 Answers

Just use

agGrid.initialiseAgGridWithAngular1(angular); 

before you initialize your module

var module = angular.module("example", ["agGrid"]);

Source

like image 155
Julian Avatar answered May 21 '26 22:05

Julian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!