Coder Social home page Coder Social logo

Comments (9)

frapontillo avatar frapontillo commented on June 14, 2024

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.

LuisEstebanArango avatar LuisEstebanArango commented on June 14, 2024

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.

xolisan avatar xolisan commented on June 14, 2024

Hi Luis,

Please make sure if you import the Jquery dependency before angular.js.

Best regards,
Sandro

from angular-bootstrap-duallistbox.

LuisEstebanArango avatar LuisEstebanArango commented on June 14, 2024

Thank you Sandro. you're right, that was my error.

from angular-bootstrap-duallistbox.

slimshadddyyy avatar slimshadddyyy commented on June 14, 2024

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.

frapontillo avatar frapontillo commented on June 14, 2024

The right order is jquery, dual list box and only in the end the directive.

from angular-bootstrap-duallistbox.

slimshadddyyy avatar slimshadddyyy commented on June 14, 2024

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.

frapontillo avatar frapontillo commented on June 14, 2024

No, you're putting the directive before the original dual list box

from angular-bootstrap-duallistbox.

frapontillo avatar frapontillo commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.