/** * @author v.lugovksy * created on 16.12.2015 */ (function () { 'use strict'; angular.module('BlurAdmin.theme.components') .directive('contentTop', contentTop); /** @ngInject */ function contentTop($location) { return { restrict: 'E', templateUrl: 'app/theme/components/contentTop/contentTop.html', link: function($scope) { $scope.pages = { '/dashboard': 'Dashboard', '/page': 'Default Page', '/404': 'Page Not Found', '/buttons': 'Buttons', '/amCharts': 'Charts', '/chartJs': 'Chart.js ', '/grid': 'Grid', '/alerts': 'Alerts', '/progressBars': 'Progress Bars', '/notifications': 'Notifications', '/icons': 'Icons', '/login': 'Authentication', '/maps': 'Maps', '/modals': 'Modals', '/profile': 'User Profile', '/tables': 'Tables', '/typography': 'Typography', '/form-layouts': 'Form Layouts', '/form-inputs': 'Form Inputs', '/maps/gmap': 'Google Map', '/maps/leaflet': 'Leaflet Map', '/maps/line': 'Line Map', '/maps/bubble': 'Bubble Map' }; $scope.$watch(function () { $scope.activePageTitle = $scope.pages[$location.$$url]; }); } }; } })();