(function () { 'use strict'; angular .module('app') .controller('ForgotController', forgot); function forgot(accountRepository, localizationHelper) { /* jshint validthis:true */ var vm = this; // Variables. vm.model = { "email": null }; // Methods. vm.resetPassword = function () { accountRepository.resetPassword(vm.model); }; vm.setLanguage = function(langCode){ localizationHelper.setLanguage(langCode); } } // IoC container. forgot.$inject = [ "repository.account", "helpers.localization" ]; })();