angularjs - Enable editing option only if the user is authenticated, else display the information normally -
angularjs - Enable editing option only if the user is authenticated, else display the information normally -
so i'm still new angularjs, i'm wondering if it's possible show things if user isn't authenticated while total access if user authenticates without duplicating template? solution think of using ng-show , ng-hide features show if isauthenticated true. there improve way of doing this?
i utilize ng-if because removes dom opposed hiding it.
you can utilize resolve function in routing determine whether user authenticated , authorized before page loads won't see edit alternative flash , disappear.
remember since javascript user can modify code allow editing show up. create sure on server side editing blocked if user not authorized so.
angularjs
Comments
Post a Comment