header.controller.js 236 B

1234567891011121314
  1. (function ()
  2. {
  3. 'use strict';
  4. app.controller('Header', function ($scope)
  5. {
  6. $scope.isLogged = function() {
  7. return localStorage.getItem('authToken') ? true : false;
  8. };
  9. }
  10. );
  11. }
  12. )();