-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scope.whenNotVisible is not a function #1
Comments
Thanks really appreciate the effort for this feedback, i'll take a look in detail in the next day or so. |
I've fixed up the detection of these functions and updated ngdocs and bumped to |
Thanks for the quick update @rpocklin However, with the new 0.9.3 release, the issue is back, albeit at a different line. The attribute
Seems like a scoping issue. Instead of it defaulting to This is the line the debugger errors at:
|
Apologies - see |
Lovely little fix. Thanks for the quick update! |
Problem:
scope.whenNotVisible is not a function
is thrown if thewhen-not-visible
attribute is omitted in the template markup.Thank you for making this lovely gem of a directive. Much lighter than in-view too :)
However, here's a snag that I hit. I have this markup:
and here's my relevant code from the controller:
But when I view the page, it throws this error in the console:
This line is where the debugger points to:
This most likely has to do with how the reference to the
whenVisible
andwhenNotVisible
functions are passed around in the directive. If thewhen-not-visible
attribute is omitted,scope.whenNotVisible
itself remainsundefined
causing this error being thrown.The text was updated successfully, but these errors were encountered: