How to send updated object from Service into Directive Controller function the Angular way?
How to make a prototype out of 2 identical controllers in angularjs?
How to call a factory method dynamically coming from variable?