/** * Sets or removes an attribute on the **host element** based on a boolean condition, * using the platform-aware `RendererServiceLocator`. * * This is typically used inside component templates to reflect slot-content * presence (e.g. `has-header`, `has-footer`, `has-actions`) onto the host * so that theme styles can react via `:host([has-header])` selectors. * * The function returns the condition value, which allows it to be used inline * inside boolean attribute bindings (e.g. `?hidden`): * * ```html *