Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using AngularJS with BackboneJS

I've been looking at frameworks to help me write better structured JS code and came across Backbone. It seems to have lots of functionality for creating classes with public and private properties and members, inheritance, etc.

Angular JS seems to do a load of completely different stuff like automatic binding of markup to model and lots of clever trickery for templating, filtering, sorting etc.

My question is not which should I choose, but is it sensible to use both? AngularJS looks really cool, but unless I'm missing something then it doesn't seem to provide any OO stuff for you to work with. Does this make sense?

like image 724
jonhobbs Avatar asked Feb 18 '26 18:02

jonhobbs


1 Answers

I'm not sure that pairing Angular with another framework would really make a lot of sense, it's quite complete as it is.

Backbone on the other hand is more composable, for instance you might take a look at the Knockback project, which make Backbone and KnockoutJS work together quite nicely. Knockout takes a MVVM approach which is relatively close to what you'll find in Angular.

like image 163
Manu Clementz Avatar answered Feb 21 '26 06:02

Manu Clementz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!