Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I wanted to use the jquery's UI layout plugin in an angular application. Is there an angular directive that does this already, or serves the same purpose?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

AngularJS is here to be built for robust arhitecture and that is why we see so many modules in terms of directives and other components. Putting JQuery with it will be like going away from their core design and you will yourself end up in a mess maintaining the codebase.

jQuery is a crutch if you are writing AngularJS applications.

If you’re starting an AngularJS app, take a good look at ng-boilerplate. Then take a look at ui-bootstrap’s directives. They are a living example of how you can do “jQuery things” with a fraction of the code, and build an app that is easier to maintain, way more testable, and generally nicer to work with.

Take a look at this stuff

share|improve this answer
    
Is it okay to use Angular's Jquery Passthrough as in angular-ui.github.io/ui-utils/#/jq if using the plugin was a must for me . –  32teeths Apr 14 '14 at 6:43
    
If you are using jquery seperate it from angular, you can use lodash to define your own jquery function and call then in angular –  NidhishKrishnan Apr 14 '14 at 6:52

To create a layout template: http://docs.angularjs.org/tutorial/step_07

Or flexible routing with nested views: https://github.com/angular-ui/ui-router

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.