Closed cdiaz closed 9 years ago
@cristiamdiaz :have you got solution of $q not defined..?
I have same issue, how may i resolved can you please help me..?
Sorry, appears to be a typo in the README example. Does this work for you?
.when('/manage', {
resolve : {
'acl' : ['$q', 'AclService', function($q, AclService){
if(AclService.can('manage_content')){
// Has proper permissions
return true;
} else {
// Does not have permission
return $q.reject('Unauthorized');
}
}]
}
});
Thank you @mikemclin now it's working fine.