Angularjs ng下拉多选库不适合我

Angularjs ng下拉多选库不适合我,angularjs,twitter-bootstrap-3,html,ng-dropdown-multiselect,javascript,Angularjs,Twitter Bootstrap 3,Html,Ng Dropdown Multiselect,Javascript,我发现这个很酷的库可以使用+,在这里创建下拉菜单: 我在下面的例子中,我有以下几点: 然而,页面上绝对没有任何内容( 有人知道可能出了什么问题吗 我有,并按此顺序加载: <script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <script type="text/javascript" src

我发现这个很酷的库可以使用+,在这里创建下拉菜单:

我在下面的例子中,我有以下几点:

然而,页面上绝对没有任何内容(

有人知道可能出了什么问题吗

我有,并按此顺序加载:

<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="lib/angular/angular.js"></script>
<script type="text/javascript" src="lib/angularjs-dropdown-multiselect/dist/src/angularjs-dropdown-multiselect.js"></script>

当我在此处添加依赖项时:

angular.module('app', ['ui.router', 'ngAnimate', 'ngSanitize', 'ngDropdownMultiselect']);
我得到这个错误:

jquery.min.js:2 Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to:
Error: [$injector:modulerr] Failed to instantiate module ngDropdownMultiselect due to:
Error: [$injector:nomod] Module 'ngDropdownMultiselect' 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.
http://errors.angularjs.org/1.6.1/$injector/nomod?p0=ngDropdownMultiselect
所以我(再次)检查了文档,它说用这个来代替

angular.module('app', ['ui.router', 'ngAnimate', 'ngSanitize', 'angularjs-dropdown-multiselect']);
现在它“起作用了”


当我在这里添加依赖项时,我一定很喜欢前端开发lol

angular.module('app', ['ui.router', 'ngAnimate', 'ngSanitize', 'ngDropdownMultiselect']);
var app = angular.module('app', [
    'ngAnimate',
    'ui.select',
    'ngSanitize',
    'ui.router',
    'ui.bootstrap',
    'ui.jq',
    'app.directive.voucherView',
    'abp'
]).filter('angularjs-dropdown-multiselect', function () { });
我得到这个错误:

jquery.min.js:2 Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to:
Error: [$injector:modulerr] Failed to instantiate module ngDropdownMultiselect due to:
Error: [$injector:nomod] Module 'ngDropdownMultiselect' 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.
http://errors.angularjs.org/1.6.1/$injector/nomod?p0=ngDropdownMultiselect
所以我(再次)检查了文档,它说用这个来代替

angular.module('app', ['ui.router', 'ngAnimate', 'ngSanitize', 'angularjs-dropdown-multiselect']);
现在它“起作用了”


ughh,我喜欢前端开发lol

你在Chrome控制台中看到任何错误吗?按F12并告诉我你在那里看到了什么。这是为了工作,所以很遗憾我不能给你截图,但我可以验证Chrome控制台中没有stdout/stderr输出。这就是问题所在,我真的不知道什么可能是错误的,也许是我应该检查指令是否存在-可能是这个?或者模块中是否缺少任何依赖项。你在Chrome控制台中看到任何错误吗?按F12并告诉我你在那里看到了什么。这是为了工作,所以很遗憾我不能给你屏幕截图,但我可以验证Chrome控制台中没有stdout/stderr输出。这很简单这就是问题所在,我真的不知道什么可能是错误的。也许我应该检查一下指令是否存在——也许是这个?或者模块中是否缺少任何依赖项。
var app = angular.module('app', [
    'ngAnimate',
    'ui.select',
    'ngSanitize',
    'ui.router',
    'ui.bootstrap',
    'ui.jq',
    'app.directive.voucherView',
    'abp'
]).filter('angularjs-dropdown-multiselect', function () { });