(function () { 'use strict'; angular .module('app') .controller('CareProviderProfileController', careProviderProfile); function careProviderProfile(tabManager) { /* jshint validthis:true */ var vm = this; // Variables. vm.tabs = [ { title: "careProviders.profile.CareProviderProfile", "url": "views/care-providers/edit.html", active: false }, { title: "careProviders.profile.ChangePassword", "url": "views/care-providers/profileChangePassword.html", active: false }, { title: "careProviders.profile.Licenses", "url": "views/care-providers/profileLicenses.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. careProviderProfile.$inject = [ "appUtils.tabManager" ]; })();