Commit f3761d0d authored by JingChao's avatar JingChao

Updates ionic/ionic-code-style.md

Auto commit by GitBook Editor
parent 7eaaeb75
......@@ -29,7 +29,31 @@ var JPushServiceModule = angular.module('JPushServiceModule',[]);
* `tab-charts`是报表tab功能使用的view
* `tab-tools`是工具tab使用的view
* `tab-myInfo`是我的tab使用的view
4. 在此举例
4. 在此举例主页tab申请创建功能
```javascript
angular.module('starter')
.config(['$stateProvider',
function ($stateProvider) {
$stateProvider
.state('tab.project-create', {
url: '/project-create',
views: {
"tab-applications": {
templateUrl: 'build/pages/applications/project-create/project-create.html',
controller: 'projectCreateCtrl as pCreat'
}
}
})
}]);
angular.module('applicationModule')
.controller('projectCreateCtrl', projectCreateCtrl);
projectCreateCtrl.$injet = ['$state', '$scope', '$ionicModal', 'baseConfig', 'hlsHttp',
'hlsPopup','$stateParams'];
function projectCreateCtrl($state, $scope, $ionicModal, baseConfig, hlsHttp,
hlsPopup,$stateParams) {
var vm = this;
```
......
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