1 import { Component, Input, OnInit } from '@angular/core'
5 styleUrls: [ './link.component.scss' ],
6 templateUrl: './link.component.html'
8 export class LinkComponent implements OnInit {
9 @Input() internalLink?: string | any[]
11 @Input() href?: string
12 @Input() target = '_self'
14 @Input() title?: string
16 @Input() className?: string
17 @Input() inheritParentCSS = false
19 @Input() tabindex: string | number
24 this.builtClasses = this.className || ''
26 if (!this.builtClasses || this.inheritParentCSS) {
27 this.builtClasses += ' inherit-parent'