{"action":"created","issue":{"url":"https://api.github.com/repos/zachsnow/ng-elif/issues/6","labels_url":"https://api.github.com/repos/zachsnow/ng-elif/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/zachsnow/ng-elif/issues/6/comments","events_url":"https://api.github.com/repos/zachsnow/ng-elif/issues/6/events","html_url":"https://github.com/zachsnow/ng-elif/pull/6","id":53206646,"number":6,"title":"Fixed \"Cannot read property 'ngIf' of undefined\" when using ng-elif within a test suite.","user":{"login":"LoganBarnett","id":27005,"avatar_url":"https://avatars.githubusercontent.com/u/27005?v=3","gravatar_id":"","url":"https://api.github.com/users/LoganBarnett","html_url":"https://github.com/LoganBarnett","followers_url":"https://api.github.com/users/LoganBarnett/followers","following_url":"https://api.github.com/users/LoganBarnett/following{/other_user}","gists_url":"https://api.github.com/users/LoganBarnett/gists{/gist_id}","starred_url":"https://api.github.com/users/LoganBarnett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoganBarnett/subscriptions","organizations_url":"https://api.github.com/users/LoganBarnett/orgs","repos_url":"https://api.github.com/users/LoganBarnett/repos","events_url":"https://api.github.com/users/LoganBarnett/events{/privacy}","received_events_url":"https://api.github.com/users/LoganBarnett/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-12-31T22:34:49Z","updated_at":"2015-01-11T02:31:38Z","closed_at":"2015-01-11T02:28:12Z","pull_request":{"url":"https://api.github.com/repos/zachsnow/ng-elif/pulls/6","html_url":"https://github.com/zachsnow/ng-elif/pull/6","diff_url":"https://github.com/zachsnow/ng-elif/pull/6.diff","patch_url":"https://github.com/zachsnow/ng-elif/pull/6.patch"},"body":"I'm using ng-elif in my project and when I run the test suite I get \"Cannot read property 'ngIf' of undefined\". The change I made to fix this involves splitting out `getter` to `getter` (the original var), and `getterFn` (what gets assigned when running `$injector.invoke(getter)`. There doesn't seem to be any runtime changes in behavior and my app uses ng-else-if and ng-else quite a bit.\r\n\r\nThanks for the awesome directive!"},"comment":{"url":"https://api.github.com/repos/zachsnow/ng-elif/issues/comments/69481081","html_url":"https://github.com/zachsnow/ng-elif/pull/6#issuecomment-69481081","issue_url":"https://api.github.com/repos/zachsnow/ng-elif/issues/6","id":69481081,"user":{"login":"zachsnow","id":770808,"avatar_url":"https://avatars.githubusercontent.com/u/770808?v=3","gravatar_id":"","url":"https://api.github.com/users/zachsnow","html_url":"https://github.com/zachsnow","followers_url":"https://api.github.com/users/zachsnow/followers","following_url":"https://api.github.com/users/zachsnow/following{/other_user}","gists_url":"https://api.github.com/users/zachsnow/gists{/gist_id}","starred_url":"https://api.github.com/users/zachsnow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachsnow/subscriptions","organizations_url":"https://api.github.com/users/zachsnow/orgs","repos_url":"https://api.github.com/users/zachsnow/repos","events_url":"https://api.github.com/users/zachsnow/events{/privacy}","received_events_url":"https://api.github.com/users/zachsnow/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T02:31:38Z","updated_at":"2015-01-11T02:31:38Z","body":"Thanks for finding this; I've pushed the fix and released `v0.1.2`."}}