0

I'm building a web-based drawing program. Since it's a lot of DOM manipulation, I decided to skip AngularJS and instead go for JQuery. I'm using RequireJS to structure it somewhat.

Now, the core drawing functionality and I want to continue building the UI around it: login/signup functionality, project file browsing, UI components for palettes, toolbars, etc.

What would you recommend for frameworks for this? BackboneJS? Marionette? Or use AngularJS for everything else that's not DOM manipulation?

4

2 回答 2

1

There is no right answer here, you'll probably get different advice from every person you ask. Having built several complex apps using both RequireJS/BackboneJS, and RequireJS/AngularJS, here's my 2 cents:

  • AngularJS - There's no reason not to use angular because you're doing DOM manipulation, that's what directives are for. You can write directives using jQuery/D3/etc, which are then encapsulated and reusable throughout your application. Angular is very opinionated and 'automagical', so be prepared to spend a lot of time debugging until you understand what's going on under the hood.
  • BackboneJS - Really lightweight, it's more of a 'toolkit' that enables you to write your own framework because it's lacking some of the glue to connect everything. If that's not your cup of tea, try out one of the opinionated libraries built on / inspired by Backbone.
于 2013-10-25T03:29:55.927 回答
1

I successfully used JSViews on my project together with RequireJS and jQuery.

They play well together, and I personnally love the minimalist approach of JSRender/JSViews: take what you want, and go as far as you need.

于 2013-10-25T10:59:32.993 回答