# SiLoadingService documentation

**Kind:** class

**Provided in:** `root`

```
import { SiLoadingService } from '@siemens/element-ng/loading-spinner';
```

```
undecorated_class SiLoadingService
```

#### Attributes and Methods

##### counter

[Source for counter](<https://github.com/siemens/element/blob/main/projects/element-ng/loading-spinner/si-loading-spinner.service.ts#L15-L15>)

**Modifiers:** readonly

**Type:** `BehaviorSubject<number>`

**Default:** `new BehaviorSubject<number>(0)`

Counts the number of loads active, is `0` when all loading is finished (or hasn't started).

##### startLoad

[Source for startLoad](<https://github.com/siemens/element/blob/main/projects/element-ng/loading-spinner/si-loading-spinner.service.ts#L20-L22>)

Start the loading.

```
startLoad(): void
```

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

##### stopLoad

[Source for stopLoad](<https://github.com/siemens/element/blob/main/projects/element-ng/loading-spinner/si-loading-spinner.service.ts#L27-L31>)

Stop the loading.

```
stopLoad(): void
```

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)
