GithubHelp home page GithubHelp logo

Comments (7)

alanloffler avatar alanloffler commented on April 30, 2024

It works calling the jquery function inside the controller, which has the options data.

from bootstrap-select.

elyobo avatar elyobo commented on April 30, 2024

I'm also having issues with selectpicker and angularjs, but my problem is that the ng-model binding doesn't work if I use selectpicker, but works perfectly without it. Any ideas?

from bootstrap-select.

xavadu avatar xavadu commented on April 30, 2024

Same that you @elyobo

from bootstrap-select.

larissaleite avatar larissaleite commented on April 30, 2024

@onza I tried calling the $('.selectpicker').selectpicker(); inside the controller that has the options data, but it didn't work. Could you please provide an example of how you managed to make it work?

from bootstrap-select.

rajmohanpdy avatar rajmohanpdy commented on April 30, 2024

i have been facing this problem. selectpicker not working with ng-modal. Any soluttion ?

from bootstrap-select.

caseyjhol avatar caseyjhol commented on April 30, 2024

Check out https://github.com/caseyjhol/ng-bootstrap-select

from bootstrap-select.

rosorio02 avatar rosorio02 commented on April 30, 2024

Hi there!
I know the post was made long time ago but I hope my solution will be a help for others.

I got another solution to the issue related.

What I did was first load my data from back-end using angularjs and inside the .success after my validation I wrote the following code:
angular.element(document).ready(function () { $('select').selectpicker("destroy"); $('select').selectpicker("render"); });
I tried to do it without angular.element(document).ready(function (){}) but nothing happend. I suppose the plugin's methods only works inside that function.

Happy Coding!!

from bootstrap-select.

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.