Tomas Trajan
Jul 24, 2017 · 1 min read

Y0 Gerard!

Thanks for the great article! It motivated me to include transitions in my project 😉

Btw: what is your opinion about simplifying the <router-outlet> part with something like this…

<div [@routerTransition]="o.isActivated &&     
o.activatedRoute.routeConfig.path"
>
<router-outlet #o="outlet"></router-outlet>
</div>

No need for extra data property in your route configs or extra method. Works like a charm 😉

Tomas Trajan

Written by

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade