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.