I am planning to re-write my web app in AngularJS 1.x. Currently I am using jQuery and it had worked fine so far. What are the benefits of using AngularJS in production over jQuery? Are you using it? Do you see a significant improvement in performance, etc..?
Ask HN: Using AngularJS 1.x in production?
1–10 of 14 posts
Re: Ask HN: Using AngularJS 1.x in production?
#2I think you should do some more googling and reading up about Angularjs. This is an apples to oranges type of comparison.
Re: Ask HN: Using AngularJS 1.x in production?
#3Angularjs and JQuery are two different libraries designed to solve different problems. Angular is designed to make data persistence very simple by mirroring your data clientside. JQuery is a tool that abstracts lots of common javascript tasks. I think you should do some more googling and reading up about Angularjs. This is an apples to oranges type of comparison.
Re: Ask HN: Using AngularJS 1.x in production?
#4Re: Ask HN: Using AngularJS 1.x in production?
#5Maintainability would be the biggest benefit. The first question I would ask is why do u feel ur existing design is no longer suitable?
Re: Ask HN: Using AngularJS 1.x in production?
#6Angular includes a jquery lite library and can be used within your angular app. It's has a learning curve, but once you understand the fundamentals of Angularjs the benefits become pretty clear.
Some common jquery practices are made really easy with Angular (hiding/showing content, animations, applying styles conditionally). Plus, as a primarily front end developer it has expanded my development abilities (can create full stack applications, mobile apps more easily, ect).
And yeah, maintainability of your code should be easier with AngularJS.
Re: Ask HN: Using AngularJS 1.x in production?
#7Maintainability would be the biggest benefit. The first question I would ask is why do u feel ur existing design is no longer suitable?
Good point. I feel that my jQuery code is getting bloated, when I add more features to a page. Though, I am still a beginner when it comes too angularjs, but I find using controller and services would clean up code by a huge margin.
Edit: I can't help but to shameless plug my AngularJS-like frame work, TemplarJS. It does most of the same things but I designed it to have a much flatter learning curve. I wouldn't recommend it for production as it is still a work-in-progress but take a look at it if you get the time. https://github.com/ShamariFeaster/Templar
Examples: http://templar.bigfeastsoftware.com
Re: Ask HN: Using AngularJS 1.x in production?
#8Earlier quoted context omitted.
Good point. I feel that my jQuery code is getting bloated, when I add more features to a page. Though, I am still a beginner when it comes too angularjs, but I find using controller and services would clean up code by a huge margin.
If your code base is still actively being enhanced or changed, then, yes, Angular is a better design than jQuery. jQuery locks you into the DOM structure, which makes changing the UI or adding features progressively more expensive as the app grows. Angular pretty much solves this problem by decoupling the UI from the code governing the functionality. Edit: I can't help but to shameless plug my AngularJS-like frame wo…
Re: Ask HN: Using AngularJS 1.x in production?
#9I use it in an enterprise production application. Angular includes a jquery lite library and can be used within your angular app. It's has a learning curve, but once you understand the fundamentals of Angularjs the benefits become pretty clear. Some common jquery practices are made really easy with Angular (hiding/showing content, animations, applying styles conditionally). Plus, as a primarily front end developer it…