From b6f971e6fb5c3a64566ff002fb14c94a085d848a Mon Sep 17 00:00:00 2001 From: Rajiv Ram V Date: Thu, 4 Jun 2015 18:06:49 +0530 Subject: [PATCH] few comments here and there --- src/components/login/js/config/index.js | 1 + src/components/login/js/controllers/index.js | 1 + src/components/tasks/js/config/index.js | 1 + src/components/tasks/js/controllers/index.js | 2 ++ 4 files changed, 5 insertions(+) diff --git a/src/components/login/js/config/index.js b/src/components/login/js/config/index.js index 6fbcdd0..4c07d9c 100644 --- a/src/components/login/js/config/index.js +++ b/src/components/login/js/config/index.js @@ -1,3 +1,4 @@ +// Configuring the different login states - login and signup. angular.module('login') .config(['$stateProvider',function($stateProvider){ $stateProvider diff --git a/src/components/login/js/controllers/index.js b/src/components/login/js/controllers/index.js index 7ebad4b..9286c77 100644 --- a/src/components/login/js/controllers/index.js +++ b/src/components/login/js/controllers/index.js @@ -1,3 +1,4 @@ +// controllers that exposes login(), logout(), confirm() and signup() to the views. angular.module('login') .controller('loginController',['$rootScope','$scope','$state','$kinvey','notify',function($rootScope,$scope,$state,$kinvey,notify){ diff --git a/src/components/tasks/js/config/index.js b/src/components/tasks/js/config/index.js index 616bb37..b61cadb 100644 --- a/src/components/tasks/js/config/index.js +++ b/src/components/tasks/js/config/index.js @@ -1,3 +1,4 @@ +// Configuring the task states. The task are resolved by fetching them from kinvey before the root.tasks state loads angular.module('tasks') .config(['$stateProvider','$urlRouterProvider',function($stateProvider,$urlRouterProvider){ $stateProvider diff --git a/src/components/tasks/js/controllers/index.js b/src/components/tasks/js/controllers/index.js index bf84669..99ce2cb 100644 --- a/src/components/tasks/js/controllers/index.js +++ b/src/components/tasks/js/controllers/index.js @@ -1,3 +1,5 @@ +// Expose approve(), addTask(), toLocale() methods to the views. toLocale() is used to display the date +// in locale format angular.module('tasks') .controller('tasksController',['$rootScope','$scope','$state','$kinvey','tasks','notify',function($rootScope,$scope,$state,$kinvey,tasks,notify){