-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Injecting $scope into an Animation silently fails #2556
Comments
@matsko This is an issue with the try cath eating exceptions. |
@jpillora failing silently is definitely an error, and it will be fixed, however I am not sure that I understand the use case for injecting $scope. As it stands now the architecture of the code makes it very unlikely that we would be able to inject a $scope into the function. Could you elaborate more on the use case? |
Hi Miško, you're right about the lack of use cases, my use case is a work around for the lack of onSetup and onStart animation events. I need to wipe the bound model of the newly hidden input. So as well as hiding, I'm also nulling portions of the parent scope. Maybe these events do exist and I couldn't find them or maybe you know of a better way to hook into something that will give me the equivalent ? (Currently I'm using DOM attributes to discern the parent scope, something like: |
If the injector can't access |
👍 |
See bug here: http://jsfiddle.net/jpillora/wKpqG/3/
Animation works where I haven't tried to inject
$scope
. I guess it makes sense that there's no scope for an animation though I was hoping to get the parent controller. Maybe an error would be nice ? Spent over an hour trying to figure out what was happening...The text was updated successfully, but these errors were encountered: