Giter VIP home page Giter VIP logo

Comments (5)

machineboy2045 avatar machineboy2045 commented on August 24, 2024

My only thought is make sure you include jquery before you include
AngularJS in your project.

If you can re-create this problem in a plunkr that would help. Otherwise
its hard for me to guess what could be wrong.

On Mon, Feb 2, 2015 at 2:57 AM, Ramesh Lingappa [email protected]
wrote:

Hi,

i have tried to use the angular-selectize js, i have included selectize,
angular, jquery plugins , and i get error as,
TypeError: undefined is not a function

in following line
102: element.selectize(config);

following is my usages

$scope.projSelectConfig = {
    create: false,
    valueField: "key",
    labelField: "name",
    placeholder: 'Select a Project',
    maxItems: 1,
    closeAfterSelect: true,
    onInitialize: function(selectize) {
        console.log('Initialized',selectize);
    }
};

but it works when i change
element.selectize(config) to $(element).selectize(config)

which also make senses, since in selectize documentation, declaration is
made on jquery element.
also am not sure how it works fine in your plunker example.

am i doing something wrong, please explain
Thanks!


Reply to this email directly or view it on GitHub
#36.

from angular-selectize.

machineboy2045 avatar machineboy2045 commented on August 24, 2024

Closing this until there is a reproducible example.

from angular-selectize.

mauris avatar mauris commented on August 24, 2024

This happens if browserify is used. I get the same error and the workaround is the same.

from angular-selectize.

amanuel2 avatar amanuel2 commented on August 24, 2024

I keep getting this error when im creating a forum. Somone please help!

from angular-selectize.

amanuel2 avatar amanuel2 commented on August 24, 2024

angular.js:10137 TypeError: n.selectize is not a function

from angular-selectize.

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.