{"action":"closed","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/1074","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1074/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1074/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1074/events","html_url":"https://github.com/angular-ui/ui-router/issues/1074","id":33353515,"number":1074,"title":"$stateProvider.decorator does not work if put in a separate file","user":{"login":"demetriusnunes","id":4699,"avatar_url":"https://avatars.githubusercontent.com/u/4699?v=3","gravatar_id":"","url":"https://api.github.com/users/demetriusnunes","html_url":"https://github.com/demetriusnunes","followers_url":"https://api.github.com/users/demetriusnunes/followers","following_url":"https://api.github.com/users/demetriusnunes/following{/other_user}","gists_url":"https://api.github.com/users/demetriusnunes/gists{/gist_id}","starred_url":"https://api.github.com/users/demetriusnunes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demetriusnunes/subscriptions","organizations_url":"https://api.github.com/users/demetriusnunes/orgs","repos_url":"https://api.github.com/users/demetriusnunes/repos","events_url":"https://api.github.com/users/demetriusnunes/events{/privacy}","received_events_url":"https://api.github.com/users/demetriusnunes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-05-12T22:34:34Z","updated_at":"2015-08-04T00:34:26Z","closed_at":"2015-08-04T00:34:26Z","body":"The way I organize my project, I have several .config sections, each with its .state definitions.\r\n\r\nI created a separate file to host a decorator for all state definitions, but it seems like it is running before all states have been defined, so the decoration does not apply to all states."}}