(js) Make use of 'controllerAs' in MainUI module

This commit is contained in:
Francis Lachapelle
2015-08-07 11:04:04 -04:00
parent 6e82a7ba7b
commit fb7d5b628f
4 changed files with 43 additions and 53 deletions
@@ -26,9 +26,6 @@
// TODO: convert to a Factory recipe?
.provider('Authentication', Authentication);
/**
* @ngInject
*/
function Authentication() {
function readCookie(name) {
var foundCookie, prefix, pairs, i, currentPair, start;
@@ -91,9 +88,11 @@
this.$get = getService;
/**
* @ngInject
*/
getService.$inject = ['$q', '$http', 'passwordPolicyConfig'];
function getService($q, $http, passwordPolicyConfig) {
var _this = this, service;
service = {