Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hel-guide
app
Commits
3aab6d21
Commit
3aab6d21
authored
Aug 17, 2017
by
宋帮潮
Browse files
Options
Browse Files
Download
Plain Diff
''
parents
150fde30
813b62b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
6 deletions
+34
-6
ionic-code-style.md
ionic/ionic-code-style.md
+34
-6
No files found.
ionic/ionic-code-style.md
View file @
3aab6d21
<<<<<<< HEAD
# 前端开发规范
=======
前端开发规范
>>>>>>> 813b62b7db58708b550ad08a428c63ce86afa8c4
---
### I. 文件命名规范
...
...
@@ -8,17 +14,29 @@
### 原则:
<<<<<<< HEAD
* 1)方便理解,见名知义
* 2)方便查找
![](/picture/h.png)
=======
*
1)方便理解,见名知义
*
2)方便查找
![](/picture/h.png)
>
>>>>>>
813b62b7db58708b550ad08a428c63ce86afa8c4
#
## II. controller命名规范
*
*控制器命名统一用 文件名+Ctrl,若文件名拼接则第一个单词首字母小写其余单词首字母大写,如下图所示:**
!
[](/picture/h4.png)
<
<<<<<< HEAD
=
======
>
>>>>>> 813b62b7db58708b550ad08a428c63ce86afa8c4
#
## III. SCSS文件注册
*
*当创建一个新SCSS文件后,要在theme目录下app.core.scss文件里import,如下图所示:**
...
...
@@ -39,7 +57,12 @@
!
[](/picture/a1.png)
<
<<<<<< HEAD
=
======
>
>>>>>> 813b62b7db58708b550ad08a428c63ce86afa8c4
#
前端开发规范
-
--
### I. 文件命名规范
...
...
@@ -48,17 +71,17 @@
### 原则:
*
1)方便理解,见名知义
*
2)方便查找
!
[](
/picture/h.png
)
*
1)方便理解,见名知义
*
2)方便查找
!
[](
/picture/h.png
)
### II. controller命名规范
*
控制器命名统一用 文件名+Ctrl,若文件名拼接则第一个单词首字母小写其余单词首字母大写,另外为了方便前台调用需要给每个控制器as一个别名(每个控制器命名和别名的设定必须具有唯一性),如下图所示:
![](
/picture/h4.png
)
### III. SCSS文件注册
*
当创建一个新SCSS文件后,要在theme目录下app.core.scss文件里import,如下图所示:
...
...
@@ -84,3 +107,8 @@
<<<<<<< HEAD
=======
>>>>>>> 813b62b7db58708b550ad08a428c63ce86afa8c4
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment