This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Description
The sample project available at https://github.com/stormpath/stormpath-angular2-express-example.git works fine. Restructuring the app to something more realistic introduces a few problems. Restructured project is available at the following repository, with read me explaining the changes (in short: routing, three components routing, dedicated login page).
https://github.com/patricknee/stormpath-angular2-testbed
In a signal page application, what is the best way to enable/disable a feature/link based on user's role assignments?
Specifically, in this application on the Dashboard page, what is the correct way to enable/disable the shown links?
At log in, what is the best way to expand the user's roles (which appears to be the Stormpath mechanism for getting roles) without making a separate call and then storing the values in my own code?