# Copyright notice

**Copyright notice** is a component to display an application's copyright information, including the company name along with the copyright's start and last-updated year.

## Code

Use the `si-copyright-notice` component to display an application's copyright information.

### Usage

It is recommended to provide the `SI_COPYRIGHT_DETAILS` injection token on a global level to make sure the copyright information are in sync across the whole app. Depending on your use case, you can also pass the copyright details via input property as shown in the live example below.

```
import { SiCopyrightNoticeComponent } from '@siemens/element-ng/copyright-notice';

@Component({
  imports: [SiCopyrightNoticeComponent, ...],
  providers: [
    {
      provide: SI_COPYRIGHT_DETAILS,
      useValue: {
          company: 'Your Company',  // Defaults to `Sample Company`
          startYear: 2021,
          lastUpdateYear: 2026
      }
    }
  ]
})
```

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component } from '@angular/core';
import { CopyrightDetails, SiCopyrightNoticeComponent } from '@siemens/element-ng/copyright-notice';

@Component({
  selector: 'app-sample',
  imports: [SiCopyrightNoticeComponent],
  templateUrl: './si-copyright-notice.html',
  host: { class: 'p-5' }
})
export class SampleComponent {
  copyrightDetails: CopyrightDetails = {
    startYear: 2023,
    lastUpdateYear: 2025,
    company: 'My Company' // Defaults to `Sample Company`
  };
}
```

Template:

```html
<si-copyright-notice [copyright]="copyrightDetails" />
```

### [SiCopyrightNoticeComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/copyright-notice/si-copyright-notice.component.ts#L14-L44>)

**Kind:** component

**Selector:** `si-copyright-notice`

```
import { SiCopyrightNoticeComponent } from '@siemens/element-ng/copyright-notice';
```

```
component SiCopyrightNoticeComponent
```

#### Input Properties

| Name | Type | Description |
| --- | --- | --- |
| [copyright](<https://github.com/siemens/element/blob/main/projects/element-ng/copyright-notice/si-copyright-notice.component.ts#L24-L24>) | `CopyrightDetails \| undefined` | Copyright information to be displayed.<br><br>Note: The [CopyrightDetails\#company](<index.html#t:CopyrightDetails.company>) defaults to `Sample Company`, only set it for other companies. |

### Types Documentation

### [CopyrightDetails](<https://github.com/siemens/element/blob/main/projects/element-ng/copyright-notice/si-copyright-notice.ts#L7-L21>)

**Kind:** interface

```
import type { CopyrightDetails } from '@siemens/element-ng/copyright-notice';
```

```
interface CopyrightDetails
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [company](<https://github.com/siemens/element/blob/main/projects/element-ng/copyright-notice/si-copyright-notice.ts#L20-L20>) (optional) | `string` | The company name to be displayed in the copyright notice (not to be translated). If empty (recommended), the company name from the theme will be used. |
| [lastUpdateYear](<https://github.com/siemens/element/blob/main/projects/element-ng/copyright-notice/si-copyright-notice.ts#L15-L15>) (optional) | `number` | The year when the app was last updated. Must be left blank if it equals [startYear](<index.html#t:CopyrightDetails.startYear>) |
| [startYear](<https://github.com/siemens/element/blob/main/projects/element-ng/copyright-notice/si-copyright-notice.ts#L11-L11>) | `number` | The year when the app was first released. |
