You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

toolbar.controller.js 549B

123456789101112131415161718
  1. /**
  2. * Created by robin on 11/1/15.
  3. */
  4. angular.module('app')
  5. .controller('ToolBarController', ['$scope', '$rootScope', '$mdSidenav', 'AppUtilsBusiness',
  6. function ($scope, $rootScope, $mdSidenav, AppUtilsBusiness) {
  7. $scope.title = AppUtilsBusiness.getToolbarTitle();
  8. $scope.toggleSideBar = function () {
  9. $mdSidenav('left').toggle();
  10. };
  11. $rootScope.$on('toolbar.title', function (event, params) {
  12. $scope.title = params.title;
  13. });
  14. }]);