Skip to content
Snippets Groups Projects
Select Git revision
  • 7149f5f96744f0022de1ed6314a9d35b4cbf2034
  • main default protected
  • OZG-8073-date-component
  • OZG-7856_schadcode_scanner
  • OZG-7985-Statistik-Datenfreigabe
  • OZG-8305-Create-webpack-sbom
  • tooltip-improvements
  • ods-remove-class-inputs
  • release-info
  • release-administration
  • release
  • OZG-7714-UpgradeKeycloakDependencyTo25
  • OZG-8086-Admin-Datenanfrage-erstellen
  • OZG-8086-Datenanfrage-Umbenennung
  • mongodb-7-0-16-e2e
  • OZG-6220-Bescheid-speichern-ohne-Postfach
  • OZG-7922-KeycloakOperatorExceptions
  • OZG-8142-poc-cards
  • OZG-8086-E2E
  • OZG-8086-E2E2
  • OZG-8142-ProjectionStuff
  • 1.11.0-info
  • 1.11.0-administration
  • 2.26.0-alfa
  • 1.10.0-info
  • 1.10.0-administration
  • 2.25.0-alfa
  • 1.9.0-info
  • 1.9.0-administration
  • 2.24.0-alfa
  • 1.8.0-info
  • 1.8.0-administration
  • 2.23.0-alfa
  • 1.7.0-info
  • 1.7.0-administration
  • 2.22.0-alfa
  • 1.6.0-info
  • 1.6.0-administration
  • 2.21.0-alfa
  • 1.5.0-info
  • 1.5.0-administration
41 results

link.component.ts

Blame
  • link.component.ts 561 B
    import { CommonModule } from '@angular/common';
    import { Component, Input } from '@angular/core';
    import { twMerge } from 'tailwind-merge';
    
    @Component({
      selector: 'ods-link',
      standalone: true,
      imports: [CommonModule],
      template: `<a [target]="openInNewTab ? '_blank' : '_self'" [href]="url" [class]="twMerge('text-text outline-focus', class)">
        <ng-content />
      </a>`,
    })
    export class LinkComponent {
      @Input({ required: true }) url!: string;
      @Input() openInNewTab: boolean = false;
      @Input() class: string = '';
    
      readonly twMerge = twMerge;
    }