]>
Commit | Line | Data |
---|---|---|
98bd5e22 | 1 | import { Component, Input, OnInit } from '@angular/core' |
37a44fc9 C |
2 | |
3 | @Component({ | |
4 | selector: 'my-link', | |
5 | styleUrls: [ './link.component.scss' ], | |
6 | templateUrl: './link.component.html' | |
7 | }) | |
98bd5e22 | 8 | export class LinkComponent implements OnInit { |
d4a8e7a6 | 9 | @Input() internalLink?: string | any[] |
37a44fc9 C |
10 | |
11 | @Input() href?: string | |
98bd5e22 | 12 | @Input() target = '_self' |
37a44fc9 C |
13 | |
14 | @Input() title?: string | |
15 | ||
98bd5e22 C |
16 | @Input() className?: string |
17 | ||
37a44fc9 | 18 | @Input() tabindex: string | number |
98bd5e22 C |
19 | |
20 | builtClasses: string | |
21 | ||
22 | ngOnInit () { | |
23 | this.builtClasses = this.className | |
24 | ? this.className | |
25 | : 'no-class' | |
26 | } | |
37a44fc9 | 27 | } |