aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/angular/link.component.ts
blob: 1f5975589472880e12df07c1d41d1108b57b5577 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { Component, Input, OnInit } from '@angular/core'

@Component({
  selector: 'my-link',
  styleUrls: [ './link.component.scss' ],
  templateUrl: './link.component.html'
})
export class LinkComponent implements OnInit {
  @Input() internalLink?: string | any[]

  @Input() href?: string
  @Input() target = '_self'

  @Input() title?: string

  @Input() className?: string

  @Input() tabindex: string | number

  builtClasses: string

  ngOnInit () {
    this.builtClasses = this.className
      ? this.className
      : 'no-class'
  }
}