File

libs/permalink/src/lib/permalink-to-clipboard/permalink-to-clipboard.component.ts

Metadata

selector n52-permalink-to-clipboard
templateUrl ./permalink-to-clipboard.component.html

Index

Inputs
Outputs

Inputs

url
Type : string

Outputs

onTriggered
Type : EventEmitter<void>
import { Component, EventEmitter, Input, Output } from '@angular/core';

@Component({
  selector: 'n52-permalink-to-clipboard',
  templateUrl: './permalink-to-clipboard.component.html'
})
export class PermalinkToClipboardComponent {

  @Input()
  public url: string;

  @Output()
  public onTriggered: EventEmitter<void> = new EventEmitter<void>();

}
<button type="button" ngxClipboard [cbContent]="url" (click)="onTriggered.emit()">copy to clipboard</button>
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""