gpt4 book ai didi

javascript - Angular 多选树不起作用

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:47:47 27 4
gpt4 key购买 nike

我在我的元素中使用了这个插件 angular-multi-select-tree in github .这是我将它包含到我的元素中的方式:

  1. 从 bower 安装 bower install angular-multi-select-tree -save在此之后我在 bower.json 中得到了字符串:

    "angular-multi-select-tree":"*"

  2. 并添加到 index.js “多选树”

    angular.module('xyzApp', ['多选树', '....']);

运行“Gulp serve”网页后无法正常工作,我在控制台中看到了这个错误

Error: [$injector:modulerr] Failed to instantiate module multi-select-tree due to:
Error: [$injector:nomod] Module 'multi-select-tree' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

我该如何解决这个错误?或者可以使用哪个插件?必要的功能:

  1. 下拉列表
  2. 搜索下拉列表
  3. 多选
  4. 分组例子: enter image description here

最佳答案

尝试 isteven-multiselect 这里是链接; https://github.com/isteven/angular-multi-select

关于javascript - Angular 多选树不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36444191/

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