We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff74537 commit 425dd07Copy full SHA for 425dd07
src/ui-shell/header/header-item.component.ts
@@ -1,13 +1,15 @@
1
-import { Component } from "@angular/core";
+import { Component, Input } from "@angular/core";
2
3
@Component({
4
selector: "ibm-header-item",
5
template: `
6
<li style="height: 100%">
7
- <a class="bx--header__menu-item" href="javascript:void(0)" role="menuitem" tabindex="0">
+ <a class="bx--header__menu-item" [href]="href" role="menuitem" tabindex="0">
8
<ng-content></ng-content>
9
</a>
10
</li>
11
`
12
})
13
-export class HeaderItem { }
+export class HeaderItem {
14
+ @Input() href = "#";
15
+}
0 commit comments