DeprecatedNext-generation platform

Creating a service

Procedure

Create a service by running the following command:ng g s <service-name> --project=store-extensions
Notes:
  • Execute the command from within the module, so that the corresponding module.ts file is updated with the new component.
  • It is mandatory to pass the argument --project=store-extensions. Failing to do so will create the component in the application-provided src folder (<WORKSPACE>/store-frontend/src). The files created here are ignored and not rendered on browser.
  • Don't pass the --skip-import argument if you are creating components or services for new feature module.