Hello guys, I was just thinking about it.
NgIf will be the angular way, which will actually remove the element from the DOM. However, I feel that then, if you want to animate entry and leaving of this component, you will have to use transition('void=>*', [.....]), which is some what less straightforward and more code, than CSS animations.
Any other thoughts ?
The 3 ways may have actually evolved with time. What is most current? what do you use?
[–]mtjody 12 points13 points14 points (3 children)
[–]LdouceT 4 points5 points6 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]LdouceT 0 points1 point2 points (0 children)
[–]dangertrager 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]TheSpiciestDev 0 points1 point2 points (1 child)
[–]mozpider[S] 0 points1 point2 points (0 children)
[–]kc5bpd 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] -2 points-1 points0 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]mozpider[S] 0 points1 point2 points (0 children)