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. out of the box, it eliminates much of the code you currently write throughData BindingAndDependency Injection. And it all happens in javascript within the browser making it an ideal partner with any server technology.
Angular is what HTML wowould have been had it been designed for applications. HTML is a great declarative language for static documents. it does not contain much in the way of creating applications, and as a result Building Web applications is an exercise inWhat do I have to do, So that I trick the browser in to doing what I want.
The impedance mismatch between dynamic applications and static events ents is often solved:
- Library-A Collection of funich which are useful when writing web apps. Your code is in charge and it callinto the library when it sees fit. E. g., jquery.
- Frameworks-A particle implementation of a web application, where your code fills in the details. the framework is in charge and it callinto your code when it needs something app specific. e. G ., knockout, sproutcore, etc.
Angular takes another approach. it attempts to minimize the impedance mismatch between document centric HTML and what an application needs by creating new HTML constructs. angular teaches the browser new syntax through a construct we call ctictives. examples include:
- Data Binding as in {{}}.
- Dom control structures for repeating/hiding Dom fragments.
- Support for forms and Form validation.
- Attaching code-behind to DOM elements.
- Grouping of HTML into reusable components.
For more information, see http://jack-fx.com/net/2013/05/29/angularjs-a-perfect-javascript-mvc-framework/