Minko Gechev 5/21/2016

Implementing the Missing "resolve" Feature of the Angular 2 Router

Read Original

This article addresses the lack of a 'resolve' feature in the deprecated Angular 2 router, which is used to pre-fetch data before a routed component is rendered. It provides a detailed tutorial on designing a custom API and implementing a workaround using the @CanActivate decorator, including code examples and a link to a demo.

Implementing the Missing "resolve" Feature of the Angular 2 Router

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

2
Designing Design Systems
TkDodo Dominik Dorfmeister 2 votes
3
Introducing RSC Explorer
Dan Abramov 1 votes
5
Fragments Dec 11
Martin Fowler 1 votes
6
Adding Type Hints to my Blog
Daniel Feldroy 1 votes
7
Refactoring English: Month 12
Michael Lynch 1 votes
9