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
a6fcd350
Commit
a6fcd350
authored
Aug 17, 2017
by
JingChao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates ionic/ionic-instruction.md
Auto commit by GitBook Editor
parent
9752a3c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ionic-instruction.md
ionic/ionic-instruction.md
+4
-4
No files found.
ionic/ionic-instruction.md
View file @
a6fcd350
...
@@ -53,17 +53,17 @@ function projectCreateCtrl($state, $scope, $ionicModal, baseConfig, hlsHttp,
...
@@ -53,17 +53,17 @@ function projectCreateCtrl($state, $scope, $ionicModal, baseConfig, hlsHttp,
hlsPopup
,
$stateParams
)
{
hlsPopup
,
$stateParams
)
{
var
vm
=
this
;
var
vm
=
this
;
```
```
*
1.0
注册此页面的路由,
*
注册此页面的路由,
路由指向project-create.html页面
路由指向project-create.html页面
!
[](
/picture/ionic-controller.png
)
!
[](
/picture/ionic-controller.png
)
**路由名称不能从复**
**路由名称不能从复**
*
2.0
使用
`tab-applications`
的view,使用
`applicationModule`
modele
*
使用
`tab-applications`
的view,使用
`applicationModule`
modele
*
3.0
定义
`projectCreateCtrl`
并取别名
`pCreat`
controller,命名规范参考
[
前端开发规范
](
/ionic/ionic-code-style.md
)
*
定义
`projectCreateCtrl`
并取别名
`pCreat`
controller,命名规范参考
[
前端开发规范
](
/ionic/ionic-code-style.md
)
**同一应用controller不能从复**
**同一应用controller不能从复**
*
4.0
html页面的编写
*
html页面的编写
```javascript
```javascript
<div class="next-button" ng-click="pCreat.create(pCreat.project)">创建</div>
<div class="next-button" ng-click="pCreat.create(pCreat.project)">创建</div>
```
```
...
...
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