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

# Class: DefaultHeaderService

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

## Constructors

### new DefaultHeaderService()

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

#### Returns

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

## Properties

### portalCount

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

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

Computes the count of portals.

#### Returns

The count of portals.

***

### portals

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

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

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

## Methods

### pushPortal()

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

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

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: [default-header/default-header.service.ts:68](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/layout/src/lib/default-header/default-header.service.ts#L68)

Removes a portal from the list of portals.

#### Parameters

##### portal

`Portal`\<`unknown`\>

The portal to be removed.

#### Returns

`void`
