angularjs-role-based-auth
angularjs-role-based-auth copied to clipboard
Role based auth example in AngularJS
 routes.js is ``` 'use strict'; define([ 'app/app', 'app/controllers/home', 'app/controllers/login', 'app/services/authentication', 'app/services/authorisation', 'app/services/session' ], function(app) { app.run(['$rootScope', '$http' ,'$location', '$state', 'AuthenticationService', 'AuthorisationService', 'SessionService', function ($rootScope, $http, $location, $state, authentication, authorisation,...
when i exec "lineman run" , have the error....
when i run `lineman run`, i get this error ``` Running "watch" task Waiting... OK >> File "vendor/components/jquery/jquery.js" added. >> File "vendor/components/angular/angular.js" added. >> File "vendor/components/angular-ui-router/release/angular-ui-router.js" added. >> File "vendor/js/underscore.js"...
Hi, I have a problem with underscore, can u explain? Console shows me ``` ReferenceError: _ is not defined at routeClean (http://127.0.0.1:18181/assets/javascripts/app/routes.js?v=0.1:25:20) at http://127.0.0.1:18181/assets/javascripts/app/routes.js?v=0.1:34:17 at h.$broadcast (http://127.0.0.1:18181/assets/javascripts/app/libraries/angular/angular.min.js?v=0.1:113:360) at Object.v.transitionTo (http://127.0.0.1:18181/assets/javascripts/app/libraries/vendor/angularui/angular-ui-router.min.js?v=0.1:7:9719)...