Creating a generic angularjs listController
Angular ui-router allows me to resolve different injections that I can use in my controllers. I created a simple generic ListController, and in the ui-router I am injecting an object that contains the CRUD functions specific for that particular view, along with the template. So, for example, let's say I have 2 services with the same "crud" syntax: addPerson(person, callback){} deletePerson(person, callback){} editPerson(person, callback){} .... addCar(car, callback){} deleteCar(car, callback){} editCar(car, callback){} .... I created a mapping object to map these services' CRUD functions into