Comments (9)
You also need to include all bootstrap-duallistbox
dependencies in your index.html
, they will get automatically picked up by bower, but you still need to reference them.
from angular-bootstrap-duallistbox.
I have this error:
TypeError: element.bootstrapDualListbox is not a function
at init (bsDuallistbox.js:173)
at initMaybe (bsDuallistbox.js:159)
at bsDuallistbox.js:117
at Scope.$digest (angular.js:16664)
at Scope.$apply (angular.js:16928)
at done (angular.js:11266)
at completeRequest (angular.js:11464)
at XMLHttpRequest.requestLoaded (angular.js:11405)
I added all bootstrap-duallistbox dependencies and the angular-bootstrap-duallistbox/dist/angular-bootstrap-duallistbox.js in the index.html and does not work. can you help me? thanks
from angular-bootstrap-duallistbox.
Hi Luis,
Please make sure if you import the Jquery dependency before angular.js.
Best regards,
Sandro
from angular-bootstrap-duallistbox.
Thank you Sandro. you're right, that was my error.
from angular-bootstrap-duallistbox.
After jQuery is loaded, then AngularJs, included below
<script src="assets/js/lib/Angular/angular-duallistbox/angular-bootstrap-duallistbox.js"></script>
<script src="common/directives/bsDuallistbox/bsDuallistbox.js"></script>
This in angular.module
`'frapontillo.bootstrap-duallistbox'`
Error: element.bootstrapDualListbox is not a function.
What am I missing here ?
from angular-bootstrap-duallistbox.
The right order is jquery, dual list box and only in the end the directive.
from angular-bootstrap-duallistbox.
is not the above same ?
<script src="assets/plugins/jQuery/jQuery-2.1.4.min.js"></script>
<script src="assets/js/lib/Angular/1.5.5/angular.js"></script>
<script src="assets/js/lib/Angular/angular-duallistbox/angular-bootstrap-duallistbox.js"></script>
<script src="common/directives/bsDuallistbox/bsDuallistbox.js"></script>
??
from angular-bootstrap-duallistbox.
No, you're putting the directive before the original dual list box
from angular-bootstrap-duallistbox.
Why are you including common/directives/bsDuallistbox/bsDuallistbox.js
? You only need to include the full library under dist
once.
from angular-bootstrap-duallistbox.
Related Issues (20)
- Postfix helpers HOT 1
- doesnt update model variable HOT 8
- "selectOrMinimalHeight" wrong variable name problem HOT 1
- info-all = 'false' attribute not working HOT 4
- DuallistBox - select one move all values HOT 1
- Required attribute gives error HOT 1
- How to set initial selected items? HOT 3
- Know when the NonSelected list box is empty HOT 3
- How to keep single/multiple option values selected ? HOT 17
- Large number of records and performance. HOT 1
- Use npm HOT 6
- Dependencies in index.html HOT 1
- Two-way binding to ng-model does not work HOT 2
- ng-model is not working for me HOT 2
- How to focus filter and item select HOT 1
- angular 4 HOT 1
- Tooltip on items HOT 2
- Avoid scroll on selection HOT 3
- Cannot populate the list of selected items from the controller HOT 7
- Example doesn't work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-bootstrap-duallistbox.