Reuse components with Angular Providers
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.
始める前に
Role required: admin or sp_admin
このタスクについて
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.
ヒント:
For easier maintenance and troubleshooting, remove any unused providers from
the Angular Providers related list in the Widget [sp_widget] table.
手順
次のタスク
To use an Angular Provider with multiple widgets, register your Provider with each widget and update the appropriate scripts.