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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -