[AngularJS] Event Unlisteners and Tests

2017-03-20 Thread 'Joe Allan Muharsky' via Angular and AngularJS discussion
I am working on a directive that conditionally listens for events, and logs accordingly. I'm having an issue with the unregister function, but it seems only during test execution. In product code, calling the listen function result correctly unregisters the event. For example, the following

Re: [AngularJS] Re: Event Unlisteners and Tests

2017-03-21 Thread 'Joe Allan Muharsky' via Angular and AngularJS discussion
Hi Sandy, Thanks for the quick reply; the behavior I'm looking for is to allow for runtime modification of the "unregister" bit, which requires toggling in realtime. Joe Joe Allan Muharsky AlphaSource TL | PeopleOps Facilitator "Stop making decisions for the user based on technology's requiremen

Re: [AngularJS] Re: Event Unlisteners and Tests

2017-03-21 Thread 'Joe Allan Muharsky' via Angular and AngularJS discussion
And understand, the code I provided is not the ideal product code; just a distillation of the issue I'm seeing. Joe Allan Muharsky AlphaSource TL | PeopleOps Facilitator "Stop making decisions for the user based on technology's requirements, and start making decisions on technology based on the us

Re: [AngularJS] Re: Event Unlisteners and Tests

2017-03-21 Thread 'Joe Allan Muharsky' via Angular and AngularJS discussion
Thanks for the recommendation, Sander. To your point, the provided example doesn't reflect the originating code. The originating code uses a custom setter on the @Input to toggle the listener. The examples provided were refactored and optimized for conveying the problematic behavior. Joe Allan

[AngularJS] Augury and "ng.probe is not a function"

2017-08-11 Thread 'Joe Allan Muharsky' via Angular and AngularJS discussion
Good morning, I have an Angular/TS application and am attempting to use Augury for profiling/troubleshooting. However, when I attempt to load Augury, I get no data (component tree, etc.), and the Console yields the failure "ng.probe is not a function". I've looked online for causes of this, and