Skip to content

Commit

Permalink
begin people module
Browse files Browse the repository at this point in the history
  • Loading branch information
dvbondoy committed Dec 11, 2016
1 parent c98a754 commit 1ba574e
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/app.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
'app.layout',
'app.settings',
'app.product',
'app.sales'
'app.sales',
'app.people'
]);
})();
7 changes: 7 additions & 0 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@
<script src="sales/sales.services.js"></script>
<script src="sales/sales.controller.js"></script>

<script src="people/people.module.js"></script>
<script src="people/people.route.js"></script>
<script src="people/people.services.js"></script>
<script src="people/people.controller.js"></script>



<!-- your app's js -->
<!--<script src="js/app.js"></script>
<script src="js/controllers.js"></script>
Expand Down
5 changes: 5 additions & 0 deletions www/layout/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
ORDERS
</div>

<div class="item item-icon-left" ui-sref="app.chat">
<i class="icon ion-chatbox"></i>
CHAT
</div>

<div class="item item-icon-left" ui-sref="app.activity">
<i class="icon ion-card"></i>
ACTIVITY
Expand Down
14 changes: 14 additions & 0 deletions www/people/people.controller.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
(function() {
'use strict';

angular
.module('app.people')
.controller('CustomerController', CustomerController);

CustomerController.$inject = ['$scope'];
function CustomerController($scope) {
var vm = this;


}
})();
7 changes: 7 additions & 0 deletions www/people/people.module.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(function() {
'use strict';

angular.module('app.people', [

]);
})();
29 changes: 29 additions & 0 deletions www/people/people.route.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
(function() {
'use strict';

angular.module('app.people').run(appRun);

appRun.$inject = ['routerHelper'];
function appRun(routerHelper) {
routerHelper.configureStates(getStates());
}

function getStates() {
return [
{
state:'app.customers',
config:{
url:'/customers',
templateUrl:'people/templates/customers.html'
}
},
{
state:'app.contacts',
config:{
url:'/contacts',
templateUrl:'people/templates/contacts.html'
}
}
];
}
})();
19 changes: 19 additions & 0 deletions www/people/people.services.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
(function() {
'use strict';

angular
.module('app.people')
.factory('Customer', Customer);

Customer.$inject = ['$q'];
function Customer($q) {
var service = {
exposedFn:exposedFn
};

return service;

////////////////
function exposedFn() { }
}
})();
Empty file.

0 comments on commit 1ba574e

Please sign in to comment.