zachsnow/ng-elif — pull request #6 by LoganBarnett (2014-12-31 22:34:49+00:00)
Title: Fixed "Cannot read property 'ngIf' of undefined" when using ng-elif within a test suite.

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.

Thanks for the awesome directive!