Reuse components with Angular Providers
-
- UpdatedAug 3, 2023
- 2 minutes to read
- Vancouver
- Service Portal Designer
Angular Providers are reusable components that can be injected into multiple widgets. To ensure quick loading widgets and a high performing portal, create Angular Providers instead of overloading your client controllers with persistent data and additional logic. With Angular Providers, you can maintain data for the lifetime of your Service Portal and reuse components and data objects across multiple widgets.
Before you begin
Role required: admin or sp_admin
About this task
By creating an Angular Provider, you can:
- Keep widgets in sync when changing records or filters.
- Share context between widgets.
- Maintain and persist state.
- Create behaviors and inject them into multiple widgets.
To learn more, visit Angular Providers.
Procedure
What to do next
To use an Angular Provider with multiple widgets, register your Provider with each widget and update the appropriate scripts.