Implemented Service and Injected into the controller