aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/angular/link.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-main/angular/link.component.ts')
-rw-r--r--client/src/app/shared/shared-main/angular/link.component.ts16
1 files changed, 13 insertions, 3 deletions
diff --git a/client/src/app/shared/shared-main/angular/link.component.ts b/client/src/app/shared/shared-main/angular/link.component.ts
index ecbd9151c..1f5975589 100644
--- a/client/src/app/shared/shared-main/angular/link.component.ts
+++ b/client/src/app/shared/shared-main/angular/link.component.ts
@@ -1,17 +1,27 @@
1import { Component, Input } from '@angular/core' 1import { Component, Input, OnInit } from '@angular/core'
2 2
3@Component({ 3@Component({
4 selector: 'my-link', 4 selector: 'my-link',
5 styleUrls: [ './link.component.scss' ], 5 styleUrls: [ './link.component.scss' ],
6 templateUrl: './link.component.html' 6 templateUrl: './link.component.html'
7}) 7})
8export class LinkComponent { 8export class LinkComponent implements OnInit {
9 @Input() internalLink?: string | any[] 9 @Input() internalLink?: string | any[]
10 10
11 @Input() href?: string 11 @Input() href?: string
12 @Input() target?: string 12 @Input() target = '_self'
13 13
14 @Input() title?: string 14 @Input() title?: string
15 15
16 @Input() className?: string
17
16 @Input() tabindex: string | number 18 @Input() tabindex: string | number
19
20 builtClasses: string
21
22 ngOnInit () {
23 this.builtClasses = this.className
24 ? this.className
25 : 'no-class'
26 }
17} 27}