r/angularjs • • Oct 11 '14

[General] Why should someone use angular.js?

I am new to RoR development and already making progress and building some wonderful apps. I've seen a lot of people using/talking about angular.js and I am really wondering what else can it do for an application. Can someone tell me an example please?

0 Upvotes

22 comments sorted by

View all comments

3

u/SleepyBrain Oct 11 '14

You should rephrase your question to "Why should someone use a front-end framework?"

Front-end devs figured out awhile ago that for performance, you can drastically reduce page load time by having the server only send data instead of html pages.

There are different front-end frameworks that work well with this idea, but to me angular makes the most 'sense.' I believe /u/calsosta gave a good list of features already, but honestly just try it and see if you like how it works.

1

u/torpedoshit Oct 12 '14

are both Angular and Bootstrap "front-end" frameworks? They seem so different, that it's strange to call Angular the same thing.

1

u/SleepyBrain Oct 12 '14

Bootstrap is more of a front-end library to help speed up development, while Angular is a framework that allows you to architect your front-end using a declarative approach.

Bootstrap does not provide structure to your app, and Angular doesn't not provide CSS, grids classes, or JavaScript components like tabs, modal, drop-down menus, etc. That's why it's easy to use them both together, since they both do different things.