Ember uses the RouteInfo object to send route information. These include route name, query parameters, and parent route. Since Ember 3.10, RouteInfo carried an extra attribute called metadata, where you can store and retrieve anything you want in a route.
How would you use this feature then? In the latest What's New in Ember video, Sam Selikoff (@samselikoff ) shows how you can create dynamic breadcrumbs. Along the way, you will see how you can inspect a RouteInfo object too.
We encourage you to watch the video and share your own applications of metadata. You can find a couple of more examples in the RouteInfo Metadata RFC. .
Top comments (0)