angularjs - Angular convention for $http / CRUD -


what angular convention or standard using $http hit api. performing crud within controller , getting fat. common move factory or common perform these actions in controller?

if using api pure rest can use ngresource or restangular , if not better use services that.below link why should thin slice controller , have more business logic in services or factory

http://toddmotto.com/rethinking-angular-js-controllers/


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -