Child pages
  • Angular services

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Services are similar to WebComponents except they have no user interface. They are mapped in solution code to the "plugins" scope - in order to be able to call their api from scripting.

A service must contain at least the specification file and the client-side js file.

The service specification file is exactly mostly the same as for web component specification filecomponents. See the specification (.spec file) section. However, as there is no UI, there is no support for handlers. Another difference is that default values and initial values for model properties are currently ignored for services.

It is recommended to have a suffix "services" as the service package name. (for example default servoy services are found into "servoyservices" directory). To avoid naming collisions between components and services packages. Furthermore, in order to avoid naming collisions among sevices themselves, a new service name should adhere to the same naming convention as WebComponents.

...