Skip to content

Protecting Client Side Routes #10

@WonderPanda

Description

@WonderPanda

Hi! Just wanted to say that so far I am blown away with your generator. I've played around with mean.js and mean.io before but this project structure is really well set up and I will most likely be using it for several projects I'm working on.

I'm attemping to add some new routes to the angular app that require admin rights in order to view. I'm confused as to how the Auth service works in terms of determining which routes require admin. Is it something to do with nested states in $stateProvider? In my app I have multiple pages located at admin/{something} which should all require proper authentication. Where is this applied?

Thanks again!

Jesse

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions