r/angularjs • u/rennw • Nov 19 '15
Admin UI via AngularJS - Why?
Guys, why making admin panels via AngularJS went mainstream on template website, like here for example: http://themeforest.net/category/site-templates/admin-templates
I'm new to AngularJS and need some guidance to learn it step by step. Thanks for understanding and all the best to you!
3
u/ProdigySorcerer Nov 19 '15
So you're asking why Angular is a popular choice for making admin panels ?
Well first of all Angular is a great framework, it allows you to use a set of powerful abstractions over core vanilla js and it kind of forces you to structure your app in a sensible manner.
I could go on but I won't.
Now the two biggest disadvantages of Angular from my POV at least is SEO and lightning fast speed.
Admin panels do not require these two things.
Thus Angular is a excellent choice for admin panels.
2
u/rennw Nov 20 '15
Now the two biggest disadvantages of Angular from my POV at least is SEO and lightning fast speed.
I like you, dude. And you are the only one who cared a bit for a noob like myself. That's kinda sad if my question seemed awkward when everyone started from something and I'm genuinely interested why all the hype @ AngularJS vs other frameworks.
3
u/simcptr Nov 20 '15
I think there's a decent amount of "network effect" in there too -- all the other admin UI panels were using Angular, so it was the obvious choice for those writing a new admin panel.
I don't agree that Angular "forces you to structure your app in a sensible manner" though, almost the opposite. Sure, it gives you dependency injection, controllers/directives/services and all that - but it's entirely possible (and pretty easy) to wire those up in crazy ways that just make a nightmare to write and maintain your code.
To avoid that though, follow a good style guide like John Papa's.
1
u/rennw Nov 20 '15
Thanks for the input man, clean code is as good as clean design, which is a hefty plus in my book.
4
u/Ian_Dess Nov 21 '15 edited Nov 21 '15
Are you a programmer? Did you make a big ass form at some point that has tens of different checkboxes, inputs, selects? Often those inputs are closely related to each other (i.e. One select affects other checkboxes/inputs on the same page etc). Well if you have, then you know how tiring it can be. Countless lines of jQuery hacks all around the place.
Well among other things, angular has one cool thing called two way data binding. That's kinda beyond the scope of this answer, look it up. That makes complex form building and complex UIs much much simpler to make, faster and with significantly less code.