2

I'm looking to use a CSS framework like Foundation for my site but I really like the way AngularJS adds to the UX on forms, so I'd like to use AngularJS only in certain sections of the site.

I've read that Foundation doesn't play nice with AngularJS so I'm looking into Bootstrap with Angular-UI.

Is it possible to run jQuery alongside AngularJS if the two don't interact and control separate elements on the page?

Dex
  • 12,527
  • 15
  • 69
  • 90
  • 2
    Required reading if you're getting started with Angular: http://stackoverflow.com/questions/14994391/how-do-i-think-in-angularjs-if-i-have-a-jquery-background – Dave Swersky Dec 02 '13 at 21:27
  • JQuery works the same with or without AngularJS. It is usually just unnecessary with the built in power that is provided with Angular. But yes, you can use JQuery and it works just fine. – Zack Argyle Dec 02 '13 at 21:32
  • @ZackArgyle yeah but there are so many more plugins written or jQuery is the reason – Dex Dec 02 '13 at 22:27
  • 2
    @Dex can use foundation, jQuery plugins etc in angular. What you have to do though is think angular first. If you think jQuery first you make app far more complex than needed and run into all sorts of issues. Initializing any plugins should almost always be done from within a directive. The main problems arise trying to use frameworks that self initialize widgest from data attributes. Don't consider self initalizing them on page load, use their js plugin calls to do it – charlietfl Dec 02 '13 at 22:41
  • as side note...once you start working with angular will realize how much easier many tasks are than strictly using jQuery. Also won't need jQuery very much – charlietfl Dec 02 '13 at 22:49

1 Answers1

1

Everyone just left comments so I'll close this out.

The answer is Yes.

Dex
  • 12,527
  • 15
  • 69
  • 90