Commit 0e651dd4 authored by JingChao's avatar JingChao

Updates ionic/ionic-code-style.md

Auto commit by GitBook Editor
parent cb711a7f
......@@ -25,6 +25,13 @@
![](/picture/js-controller.png)
- 严格遵循MVC模式
- controller名称不允许从复
- js中许多地方都有controller,编写js是全部修改过来
- angularjs 采用依赖注入的方式,服务注入顺序必须保持一致即如下图
![](/picture/controller-server.png)
### III. SCSS文件注册
* 当创建一个新SCSS文件后,要在theme目录下app.core.scss文件里import,如下图所示:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment