fnakstad / angular-client-side-auth

One way to implement authentication/authorization in Angular applications
http://angular-client-side-auth.herokuapp.com/
MIT License
1.63k stars 346 forks source link

Unresolved variable or type routingConfig #87

Closed Kamonone closed 9 years ago

Kamonone commented 9 years ago

I tried to use the clientside part of the project to work with Java REST backend. But I have a trouble

var access = routingConfig.accessLevels; in app.js and

    var accessLevels = routingConfig.accessLevels
        , userRoles = routingConfig.userRoles

in services.js gives me an error "Unresolved variable or type routingConfig" in my IDE so the browser doesn't use it. and submits only send the rememberme POSTDATA

Any tips?

Kamonone commented 9 years ago

I guess its the broken html i got from converting the jade files. Could you please post and html version of partials and index.html somewhere?

fnakstad commented 9 years ago

The HTML versions can easily be generated from Jade by using Jade's CLI. I did it for the index.jade page, and put the resulting HTML in this gist. Hope this helps you with your problem!