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
Post a Comment