angularjs - Preventing from part of files loading to browser -


i using angular

lets have login screen(model,controller,view) , few other screens (model,controller,view) perform secret manipulation available logged in user.

is possible load browser login files(that files won't shown in f12/sources) ,then when user logged in load secret files.

in short don't want user can see files before logged in.

that 1 of problems within client-side applications angular spas. since want load content server, if happens on client, client has know, can content.

one solution ui-router. (documentation). there, can set state logged in users. every state can have own html template, gets loaded, when enter state. problem ist, path of said html template on client. means, have set kind of cookie server, know, client logged in. , then, requested template can recieved. way can know template on server cannot access it.


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -