i want ask whether there way deploy angular apps i.e. (modules, controllers, factories) , bindings when users inspect or view page source on browsers they're shown html , not bindings example {{persons.name}}, {{persons.email}}.
even when use ng-bind or ng-bind-template have our model objects displayed in code inspection or view page source views of browser.
understandably framework self based on java script start , scripts required on page, question is there way hide underlying model architecture in controller or factories written app ?
can use technique building our scripts , executing them on run time instead while our app initializes , not make code (in our scripts) , bindings (in our html) observable users ?
i have done bit of searching , haven't yet found suitable solution, of articles , references regarding angular point towards it's core concepts instead.
i have started working on angular i'm trying things right way have jquery background.
it sounds wanting know if can pre-render angular. while there technologies this, sake of search engine optimization, not end-user use. because angularjs run client-side. if have pre-render it, defeat purpose of having (honestly, should go other technology server-side rendering).
if want 'hide' angular code, can there minify uglify. make angular code incredibly difficult work with, , smaller end-user download. there additional 'mangle' capability uglify offers, understanding is difficult or impossible work angular due of angular's peculiarities regarding dependency injection.
Comments
Post a Comment