{"action":"created","issue":{"url":"https://api.github.com/repos/Narzerus/angular-permission/issues/65","repository_url":"https://api.github.com/repos/Narzerus/angular-permission","labels_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/65/comments","events_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/65/events","html_url":"https://github.com/Narzerus/angular-permission/issues/65","id":74534542,"number":65,"title":"Multiple redirects. Error: [$rootScope:infdig] 10 $digest() iterations reached. ","user":{"login":"sars","id":226194,"avatar_url":"https://avatars3.githubusercontent.com/u/226194?v=4","gravatar_id":"","url":"https://api.github.com/users/sars","html_url":"https://github.com/sars","followers_url":"https://api.github.com/users/sars/followers","following_url":"https://api.github.com/users/sars/following{/other_user}","gists_url":"https://api.github.com/users/sars/gists{/gist_id}","starred_url":"https://api.github.com/users/sars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sars/subscriptions","organizations_url":"https://api.github.com/users/sars/orgs","repos_url":"https://api.github.com/users/sars/repos","events_url":"https://api.github.com/users/sars/events{/privacy}","received_events_url":"https://api.github.com/users/sars/received_events","type":"User","site_admin":false},"labels":[{"id":126363915,"url":"https://api.github.com/repos/Narzerus/angular-permission/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":30,"created_at":"2015-05-08T23:53:00Z","updated_at":"2018-02-19T17:19:38Z","closed_at":"2015-06-15T19:03:52Z","author_association":"NONE","body":"``` html\n<!DOCTYPE html>\n<html>\n<head>\n    <base href=\"/\">\n    <title>Error</title>\n    <script src=\"https://code.angularjs.org/1.3.9/angular.js\"></script>\n    <script src=\"https://rawgit.com/angular-ui/ui-router/0.2.13/release/angular-ui-router.js\"></script>\n    <script src=\"https://rawgit.com/Narzerus/angular-permission/development/dist/angular-permission.js\"></script>\n    <script src=\"/module.js\"></script>\n</head>\n<body ng-app=\"app\">\n    <ui-view />\n</body>\n</html>\n```\n\n``` javascript\nangular.module('app', ['ui.router', 'permission']).run(function (Permission, $timeout, $q) {\n  Permission.defineRole('role1', function () {\n    var deferred = $q.defer();\n    $timeout(function () {\n      deferred.reject();\n    }, 3000);\n    return deferred.promise;\n  });\n}).config(function ($stateProvider, $urlRouterProvider, $locationProvider) {\n  $locationProvider.html5Mode(true);\n\n  $urlRouterProvider.otherwise('/');\n\n  $stateProvider\n    .state('main', {\n      url: '/',\n      template: 'text',\n      data: {\n        permissions: {\n          except: ['role1']\n        }\n      }\n    });\n});\n```\n\nThis is very simple example. When I try to navigate to /hhh (not existed state) it does multiple redirects\nWhere is error?\n"},"comment":{"url":"https://api.github.com/repos/Narzerus/angular-permission/issues/comments/366756180","html_url":"https://github.com/Narzerus/angular-permission/issues/65#issuecomment-366756180","issue_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/65","id":366756180,"user":{"login":"MustafaASK","id":31955617,"avatar_url":"https://avatars2.githubusercontent.com/u/31955617?v=4","gravatar_id":"","url":"https://api.github.com/users/MustafaASK","html_url":"https://github.com/MustafaASK","followers_url":"https://api.github.com/users/MustafaASK/followers","following_url":"https://api.github.com/users/MustafaASK/following{/other_user}","gists_url":"https://api.github.com/users/MustafaASK/gists{/gist_id}","starred_url":"https://api.github.com/users/MustafaASK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MustafaASK/subscriptions","organizations_url":"https://api.github.com/users/MustafaASK/orgs","repos_url":"https://api.github.com/users/MustafaASK/repos","events_url":"https://api.github.com/users/MustafaASK/events{/privacy}","received_events_url":"https://api.github.com/users/MustafaASK/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T17:19:38Z","updated_at":"2018-02-19T17:19:38Z","author_association":"NONE","body":"Looks like I am a little too late to the party ... But I am seeing these digest errors with the latest angularjs 1.x. I tired almost all solutions suggested in this post and other similar posts, without any luck. :( Not sure how to fix this! Appreciate any suggestions for resolving this. "}}
{"actor":{"display_login":"MustafaASK"}}