asp.net web api - datacontext in johnpapa angularjs -


in recent project, opted johnpapa angularjs framework web app. now, want our pages interact web api located on server. so, have googled bit , found there 2 approaches 1 factory , other service. , datacontext located in johnpapa angularjs framework factory. so, looks calls going make our webapi's needs implemented in teh datacontext factory. seems little messy imo. , want create seperate file each service/factory i.e. usersvc.js, ordersvc.js

so, approach split functions in different service/factory according logical separation. and, second thing need create service or factory calling webapis.


Comments

Popular posts from this blog

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -