This decorator automatically updates the decorated property whenever the application
name changes in the platform. It's the recommended approach over manual subscriptions
as it handles subscription lifecycle automatically.
Returns
A PropertyDecorator that sets up automatic subscription to application name
// Transform the application name @State() @SelectApplicationName({ map: [(name) =>name?.toUpperCase()] }) privateappNameUppercase: string;
Example
// Only update when name is defined @State() @SelectApplicationName({ filter: [(name) =>name !== null && name !== undefined] }) privatevalidAppName: string;
Decorator that subscribes to the application name from the ApplicationRepository.
This decorator automatically updates the decorated property whenever the application name changes in the platform. It's the recommended approach over manual subscriptions as it handles subscription lifecycle automatically.
Returns
A PropertyDecorator that sets up automatic subscription to application name
Remarks
Subscribes to: ApplicationRepository
Updates: The decorated property with the application name (
string)Lifecycle: Automatically subscribes in
connectedCallbackand unsubscribes indisconnectedCallbackof the component.Example
Example
Example
Example