UNPKG

ohayolibs

Version:

Ohayo is a set of essential modules for ohayojp.

20 lines (16 loc) 686 B
import { ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild, ViewEncapsulation } from '@angular/core'; import { BooleanInput, InputBoolean } from '@ohayo/util'; @Component({ selector: 'global-footer-item', exportAs: 'globalFooterItem', template: ` <ng-template #host><ng-content></ng-content></ng-template> `, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, }) export class GlobalFooterItemComponent { static ngAcceptInputType_blankTarget: BooleanInput; @ViewChild('host', { static: true }) host: ElementRef; @Input() href: string; @Input() @InputBoolean() blankTarget: boolean; }