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

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World