{"action":"created","issue":{"url":"https://api.github.com/repos/dwmkerr/angular-modal-service/issues/35","labels_url":"https://api.github.com/repos/dwmkerr/angular-modal-service/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/dwmkerr/angular-modal-service/issues/35/comments","events_url":"https://api.github.com/repos/dwmkerr/angular-modal-service/issues/35/events","html_url":"https://github.com/dwmkerr/angular-modal-service/pull/35","id":56961368,"number":35,"title":"Update options and code flow","user":{"login":"rumkin","id":609373,"avatar_url":"https://avatars.githubusercontent.com/u/609373?v=3","gravatar_id":"","url":"https://api.github.com/users/rumkin","html_url":"https://github.com/rumkin","followers_url":"https://api.github.com/users/rumkin/followers","following_url":"https://api.github.com/users/rumkin/following{/other_user}","gists_url":"https://api.github.com/users/rumkin/gists{/gist_id}","starred_url":"https://api.github.com/users/rumkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rumkin/subscriptions","organizations_url":"https://api.github.com/users/rumkin/orgs","repos_url":"https://api.github.com/users/rumkin/repos","events_url":"https://api.github.com/users/rumkin/events{/privacy}","received_events_url":"https://api.github.com/users/rumkin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-08T18:22:16Z","updated_at":"2015-03-16T15:51:56Z","closed_at":"2015-03-15T17:19:37Z","pull_request":{"url":"https://api.github.com/repos/dwmkerr/angular-modal-service/pulls/35","html_url":"https://github.com/dwmkerr/angular-modal-service/pull/35","diff_url":"https://github.com/dwmkerr/angular-modal-service/pull/35.diff","patch_url":"https://github.com/dwmkerr/angular-modal-service/pull/35.patch"},"body":"Add custom scope option and initialise controller before template render to avoid ng-init and other directives work before some data passed into template from controller."},"comment":{"url":"https://api.github.com/repos/dwmkerr/angular-modal-service/issues/comments/81755456","html_url":"https://github.com/dwmkerr/angular-modal-service/pull/35#issuecomment-81755456","issue_url":"https://api.github.com/repos/dwmkerr/angular-modal-service/issues/35","id":81755456,"user":{"login":"dwmkerr","id":1926984,"avatar_url":"https://avatars.githubusercontent.com/u/1926984?v=3","gravatar_id":"","url":"https://api.github.com/users/dwmkerr","html_url":"https://github.com/dwmkerr","followers_url":"https://api.github.com/users/dwmkerr/followers","following_url":"https://api.github.com/users/dwmkerr/following{/other_user}","gists_url":"https://api.github.com/users/dwmkerr/gists{/gist_id}","starred_url":"https://api.github.com/users/dwmkerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwmkerr/subscriptions","organizations_url":"https://api.github.com/users/dwmkerr/orgs","repos_url":"https://api.github.com/users/dwmkerr/repos","events_url":"https://api.github.com/users/dwmkerr/events{/privacy}","received_events_url":"https://api.github.com/users/dwmkerr/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T15:51:56Z","updated_at":"2015-03-16T15:51:56Z","body":"@rumkin I'm going to have to revert this PR because as @TOTOIIIUr has noticed it means that the controller function does not have the facility to have `$element` injected. I'll also have to create a test for this case (which should fail until the commit is rolled back).\r\n\r\nCan you give a use-case where the code was failing before @rumkin?\r\n\r\n@TOTOIIIUr until I revert, using the previous version should fix your issue"}}