Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Enable link on SPA #25

Closed
patricknee opened this issue Dec 10, 2016 · 2 comments
Closed

Enable link on SPA #25

patricknee opened this issue Dec 10, 2016 · 2 comments

Comments

@patricknee
Copy link

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?

@mraible
Copy link
Contributor

mraible commented Jan 20, 2017

@patricknee Can you please look at #41 and see if these directives might work for you? You should be able to checkout the branch and run npm start to test.

@mraible
Copy link
Contributor

mraible commented Jan 27, 2017

Closing because of lack of response.

@mraible mraible closed this as completed Jan 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants