V1.3, multi anim definitions, added options, global defaults... more #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've been trying to move from ng1 to ng2 for the 2nd time in my career and yet AGAIN I'm going back to AngularJs because ng2 is just not mature enough yet (UPDATE:3/1/17: I'm back at ng2, again).
I didn't want to lose some of your code that I had modified. I had to hack your code in different ways to dumb it down, as I'm not up to date on TypeScript but I got your code working with more flexibility.
What's included in this pull request:
1 - The ability to define multiple animation collections, by name. See updated README
2 - Setup the future of this package to support staggered animations. Although not yet supported.
3 - The ability to define animation defaults so every reuse, reuses the altered defaults.
4 - Added another way to define animation collections by using animateConfig(options) instead of an array of arguments like with animateFactory
5 - Updated docs with several helpful documentation flavors.
Do whatever you see fit for this pull request. Again, just trying to not waste code that I cannot use (UPDATE:3/1/17: I'm using this code).
If curious, I'm stopping Angular2 developments for now, for some of the following reasons:
1 - Staggering animations not yet supported in ng2 built-in animation stacking (2/27/17)
2 - Not able to find ngAnimateSwap replacement but this wasn't a show stopper
3 - Lack of packages to choose from like AngularJs, lack of peer programmers with knowledge.
4 - The overall learning curve is so steap: Documentation is lacking, many varying ways to pack and bundle code creates convolution
5 - Including non-js code in Typescript is complicated but doable but in-general I've had to go back and forth "trying" changes to a tsconfig file I never had before.
Farewell. Thanks for fielding my pull request