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

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

Weed, Guns & Minimum Wage: What Else Is The U.S. Voting On?

The Ten Most Livable Cities In The World