what is angular js and in which scenario it can be used?

Posted by Swappy_Gaj under ASP.NET on 12/29/2014 | Points: 10 | Views : 677 | Status : [Member] | Replies : 2
please help me to explain
what is angular js and its uses in practical life
whats the difference between javaascript and angular js.
from where to start angular js


Posted by: kgovindarao523-21772 on: 12/29/2014 [Member] [MVP] Bronze | Points: 25


See, there is no question like difference between JavaScript and angular js. Angular js is a frame work based on javascript. simply, angular js also implemented in javascript. I think you are familiar with jquery. jquery also built in javascript, but it gives us ease on html DOM manipulations. like this angular js also a different frame work.

Now the question is, what is angular js?
AngularJS is a full front-end MVC framework for JavaScript web applications. It was built at Google and provides a way to quickly build large, single-page web applications. Like jQuery, it is included into a page using the tag, and is itself written in JavaScript. Unlike jQuery, it is meant to be a framework upon which an entire web application is built. It actually includes a minimal version of jQuery by default.

You can learn angular js from below links.

Please mark as answer if you satisfied.

Thank you,

Swappy_Gaj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Johnjonson121 on: 1/3/2015 [Member] Starter | Points: 25

AngularJS is a structural framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML's syntax to express your application's components clearly and succinctly. Angular's data binding and dependency injection eliminate much of the code you would otherwise have to write.

Controllers in Angular are simple functions that have one job only, which is to manipulate the scope. For example, you can use it to prefill data into the scope from the server or implement business logic validations. Unlike other frameworks, controllers are not objects and don’t inherit from anything.

If controllers are so simple, then where should all the heavy lifting be performed? Angular introduces Services to do just that.

Services are exactly what they sound like. They don’t get involved with the MVC of your app, but simply provide an outward API to expose whatever you want it to expose. Most of the time it syncs up to a server to maintain an offline data store and exposes methods to push and pull data to and from a server. Or it can be used to create a resource sharing service that allows multiple controllers to share the same resources.

Services are designed to be standalone objects separate from your app and allow your controller to be remain lean and dedicated to the view and scope that it is assigned to. Of course, implementing services is not required and it is perfectly acceptable to do some light lifting inside your controller to avoid over complexity.

Swappy_Gaj, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response