(function () { 'use strict'; angular .module('app') .controller('UserProfileController', userProfile); function userProfile(tabManager) { /* jshint validthis:true */ var vm = this; // Variables. vm.tabs = [ { title: "", "url": "views/users/profileEditTab.html", active: false } ]; vm.tm = tabManager; // Methods. vm.openTab = tabManager.loadTemplate; // Main. vm.openTab(appLocalStorage.get("currentTabUrl") || vm.tabs[0].url); tabManager.highlightActiveTab(vm.tabs); } // IoC container. userProfile.$inject = [ "appUtils.tabManager" ]; })();