Skip to content
Edit this page

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
      }
    }
  ]
})

SiCopyrightNoticeComponent API Documentation

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

Input Properties

Name Type Description
copyright
CopyrightDetails | undefined

Copyright information to be displayed.

Note: The CopyrightDetails#company defaults to Sample Company, only set it for other companies.

Types Documentation

Properties
  • 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.

    company ? : string

  • The year when the app was last updated. Must be left blank if it equals startYear

    lastUpdateYear ? : number

  • The year when the app was first released.

    startYear : number


Except where otherwise noted, content on this site is licensed under MIT License.