Reputation: 23492
Is it possible to animate elements on Angular 2 like on jQuery? For example, I want div containing sub-elements to expand/shrink when clicked. Does Angular 2 provide directives for this, or do I have to call jQuery inside Angular event handlers ?
Upvotes: 0
Views: 1199
Reputation: 168
Just use bootstrap accordion . Here is a link to it https://getbootstrap.com/docs/4.3/components/collapse/
Upvotes: 0
Reputation: 1608
Check out https://angular.io/docs/ts/latest/guide/animations.html
Remember to use the polyfills for older browsers.
Upvotes: 1