AngularJS – javascript MVC 框架
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了AngularJS – javascript MVC 框架,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2024字,纯文字阅读大概需要3分钟。
内容图文
原文链接:http://www.cnblogs.com/skywind/archive/2013/05/29/angularjs-a-perfect-javascript-mvc-framework.htmlAngularJS 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 through data binding and dependency injection. And it all happens in JavaScript within the browser making it an ideal partner with any server technology.
Angular is what HTML would 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 in what 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 documents is often solved as:
- library - a collection of functions which are useful when writing web apps. Your code is in charge and it calls into the library when it sees fit. E.g., jQuery.
- frameworks - a particular implementation of a web application, where your code fills in the details. The framework is in charge and it calls into 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 directives. 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.
更多请参考http://jack-fx.com/net/2013/05/29/angularjs-a-perfect-javascript-mvc-framework/
转载于:https://www.cnblogs.com/skywind/archive/2013/05/29/angularjs-a-perfect-javascript-mvc-framework.html
内容总结
以上是互联网集市为您收集整理的AngularJS – javascript MVC 框架全部内容,希望文章能够帮你解决AngularJS – javascript MVC 框架所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。