gpt4 book ai didi

javascript - agGrid AngularJS 1.x 示例不起作用

转载 作者:行者123 更新时间:2023-12-01 01:32:00 24 4
gpt4 key购买 nike

在使用 AngularJS 评估 agGrid 期间。我在 agGrid Documentation 上发现了这一点AngularJS 的示例不工作。我在 Internet Explorer 控制台上发现异常:

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

任何人都可以修复该示例,以便我们可以彻底探索此控件吗?

最佳答案

只需使用

agGrid.initialiseAgGridWithAngular1(angular); 

在初始化模块之前

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

Source

关于javascript - agGrid AngularJS 1.x 示例不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39166499/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com