123456789101112131415161718 |
- /**
- * Created by robin on 11/1/15.
- */
-
- angular.module('app')
- .controller('ToolBarController', ['$scope', '$rootScope', '$mdSidenav', 'AppUtilsBusiness',
- function ($scope, $rootScope, $mdSidenav, AppUtilsBusiness) {
-
- $scope.title = AppUtilsBusiness.getToolbarTitle();
-
- $scope.toggleSideBar = function () {
- $mdSidenav('left').toggle();
- };
-
- $rootScope.$on('toolbar.title', function (event, params) {
- $scope.title = params.title;
- });
- }]);
|