1. Angularjs的四大特性:
- 1.2 模块化和依赖注入
- 1.3 双向数据绑定
- 1.1 MVC
- 1.4 指令
2. ng官方推荐的模块切分方式
- app
- controllers
- directives
- services
- routers
- filters
- 2.1任何一个ng应用都是由控制器,指令,服务,路由,过滤器等有限的模块类构成的
- 2.2控制器,指令,服务,路由,过滤器分别放在一个模块里面
- 2.3用一个总的app模块做为入口点,它依赖其他所有模块
- controllers
- directives
- services
- routers
- filters