[@rxap/layout](../wiki/globals) / HeaderService

# Class: HeaderService

Defined in: [header.service.ts:16](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/layout/src/lib/header.service.ts#L16)

## Constructors

### new HeaderService()

> **new HeaderService**(): [`HeaderService`](../wiki/Class.HeaderService)

#### Returns

[`HeaderService`](../wiki/Class.HeaderService)

## Properties

### portalCount

> `readonly` **portalCount**: `Signal`\<`number`\>

Defined in: [header.service.ts:33](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/layout/src/lib/header.service.ts#L33)

Computes the count of portals.

#### Returns

The count of portals.

***

### portals

> `readonly` **portals**: `WritableSignal`\<`Portal`\<`unknown`\>[]\>

Defined in: [header.service.ts:25](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/layout/src/lib/header.service.ts#L25)

Represents an array of `Portal` objects with unknown type.

## Methods

### pushPortal()

> **pushPortal**(`portal`): `void`

Defined in: [header.service.ts:43](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/layout/src/lib/header.service.ts#L43)

Adds a portal to the list of portals.

#### Parameters

##### portal

`Portal`\<`unknown`\>

The portal to be added.

#### Returns

`void`

***

### removePortal()

> **removePortal**(`portal`): `void`

Defined in: [header.service.ts:59](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/layout/src/lib/header.service.ts#L59)

Removes a portal from the list of portals.

#### Parameters

##### portal

`Portal`\<`unknown`\>

The portal to be removed.

#### Returns

`void`
