码迷,mamicode.com
首页 > 移动开发 > 详细

《Getting MEAN with Mongo Express Angular and Node》---ch08 Adding Angular components to an Express application(向Express应用添加Angular组件)

时间:2016-06-17 19:39:04      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:

This chapter covers(本章概要)
■ Getting to know Angular(了解Angrular)
■ Adding Angular to an existing page(向动态页面添加Angular)
■ Filtering lists of data(过滤列表数据)
■ Using an API for reading data(使用API读取数据)
■ Some Angular jargon: controllers, scope, filters,directives, services(某些Angular术语:控制器,作用域,过滤器,指令,服务)

 

...

 

技术分享

 

...

 

8.1 Getting Angular up and running

Angular is the second JavaScript framework in the MEAN stack, with Express being the other. Express, as we’ve seen, sits on the server, whereas Angular sits on the client side in the browser. Like Express, Angular helps you separate your concerns, dealing with views, data, and logic in distinct areas. The approach is very much in the MVC style, but Angular has been defined as an MVW framework, where the W stands for “whatever works for you.” Sometimes it might be controllers, or the view-model, or services. It depends on what you’re doing at any given point.

在MEAN堆栈中,使用了两个js框架,一个是Express,另一个是Angular。 正如我们所看到的,Express作用域服务端,而Angular是作用域浏览器客户端。和Express一样,Angular帮助你将你关注的视图、数据、业务逻辑分成不同的区域。这种方法在MVC风格中很多,然而Angular被定义成MVW风格的框架,其中W代表“whatever works for you”。有些时候它可能作为控制器,视图-模型,服务器,这取决于你的侧重点。

 

...

 

Angular is a client-side framework, so it doesn’t take much installation.

 

《Getting MEAN with Mongo Express Angular and Node》---ch08 Adding Angular components to an Express application(向Express应用添加Angular组件)

标签:

原文地址:http://www.cnblogs.com/allearner/p/5594814.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!