Return service from template

  • We saw that in Awesome Enterprise, we can return variable, array or json from template and module.
  • But there is provision that we can also return service from template and module.
  • Here is the example how we do it

Example:

  • Module code

  • Common Service – add module

  • This service is executing addition of parameters, which are received by service module
  • This kind of functionality can be use when we there is user response needs to be shown, like success res and error response.
Updated on Jun 19, 2021