-
Notifications
You must be signed in to change notification settings - Fork 27.4k
ngAnimate: Set class name filter to include also children elements? #14891
Comments
That feature could come in handy. |
I see now that this is not quite a good workaround since the directive will apply only to the current/initial children elements but not for the ones added after. I have a problem now with that because I'm using |
@mikisoft, I know - this is just a work-around (and not an efficient one either). |
This commit adds a new `customFilter()` function on `$animateProvider` (similar to `classNameFilter()`), which can be used to filter animations (i.e. decide whether thay are allowed or not), based on the return value of a custom filter function. This allows to easily create arbitrarily complex rules filtering animations, such as allowing specific events only, or enabling animations on specific subtrees of the DOM. Fixes angular#14891
This commit adds a new `customFilter()` function on `$animateProvider` (similar to `classNameFilter()`), which can be used to filter animations (i.e. decide whether thay are allowed or not), based on the return value of a custom filter function. This allows to easily create arbitrarily complex rules for filtering animations, such as allowing specific events only, or enabling animations on specific subtrees of the DOM etc. Fixes angular#14891
Okay, one more thing and I won't annoy you anymore: Can you post here working example using that new feature (you could again modify mine)? After that, this issue can be closed. |
This commit adds a new `customFilter()` function on `$animateProvider` (similar to `classNameFilter()`), which can be used to filter animations (i.e. decide whether they are allowed or not), based on the return value of a custom filter function. This allows to easily create arbitrarily complex rules for filtering animations, such as allowing specific events only, or enabling animations on specific subtrees of the DOM, etc. Fixes angular#14891
This commit adds a new `customFilter()` function on `$animateProvider` (similar to `classNameFilter()`), which can be used to filter animations (i.e. decide whether they are allowed or not), based on the return value of a custom filter function. This allows to easily create arbitrarily complex rules for filtering animations, such as allowing specific events only, or enabling animations on specific subtrees of the DOM, etc. Fixes angular#14891
This commit adds a new `customFilter()` function on `$animateProvider` (similar to `classNameFilter()`), which can be used to filter animations (i.e. decide whether they are allowed or not), based on the return value of a custom filter function. This allows to easily create arbitrarily complex rules for filtering animations, such as allowing specific events only, or enabling animations on specific subtrees of the DOM, etc. Fixes angular#14891
This commit adds a new `customFilter()` function on `$animateProvider` (similar to `classNameFilter()`), which can be used to filter animations (i.e. decide whether they are allowed or not), based on the return value of a custom filter function. This allows to easily create arbitrarily complex rules for filtering animations, such as allowing specific events only, or enabling animations on specific subtrees of the DOM, etc. Fixes #14891
Here's an example: http://plnkr.co/edit/jQUwh3KsZ1uR3lr3TrLK?p=preview
I want to set
classNameFilter
setting to apply to the children elements as it applies to the parent which contains class name in filter. So, how to achieve that as I haven't seen such option (so I guess this is a feature request)?Thanks in advance!
The text was updated successfully, but these errors were encountered: