Giter Site home page Giter Site logo

Comments (7)

robertjd avatar robertjd commented on August 16, 2024

Does this actually require you to have a jQuery library on the page? I thought Angular had some kind of internal "jQuery light" which provides the element API?

from stormpath-sdk-angularjs.

voor avatar voor commented on August 16, 2024

Good question, I was essentially having problems without jQuery, and then everything worked when I added it in. I'll get some logs tomorrow and post them.

from stormpath-sdk-angularjs.

evangelicaldev avatar evangelicaldev commented on August 16, 2024

Angular comes with its own version of jQuery. There should be no problems using .show() or .hide() in the directive. I haven't had problems with Stormpath, or had to add jQuery. Here is what the Angular docs say about jQuery:

Does Angular use the jQuery library?
Yes, Angular can use jQuery if it's present in your app when the application is being bootstrapped. If jQuery is not present in your script path, Angular falls back to its own implementation of the subset of jQuery that we call jQLite.

Angular 1.3 only supports jQuery 2.1 or above. jQuery 1.7 and newer might work correctly with Angular but we don't guarantee that.

from stormpath-sdk-angularjs.

bkyarger avatar bkyarger commented on August 16, 2024

I think it does require jQuery for show() and hide(). On the docs for jqLite/angular.element it lists the supported methods and show/hide are not listed.

from stormpath-sdk-angularjs.

evangelicaldev avatar evangelicaldev commented on August 16, 2024

Yeah, I think you're right. However, I think that instead of resorting to jQuery, we probably should be using the ngHide and ngShow directives.

from stormpath-sdk-angularjs.

bkyarger avatar bkyarger commented on August 16, 2024

Yes, I agree. We would like to use this without having to include jQuery at all.

from stormpath-sdk-angularjs.

timothyej avatar timothyej commented on August 16, 2024

Thanks @bkyarger! This SDK no longer depends on jQuery, so I'm closing this issue.

from stormpath-sdk-angularjs.

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.