@angular/core#HostBinding TypeScript Examples

The following examples show how to use @angular/core#HostBinding. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: table.component.ts    From canopy with Apache License 2.0 5 votes vote down vote up
@HostBinding('class') class = 'lg-table';
Example #2
Source File: tutorial-popup.component.ts    From bdc-walkthrough with MIT License 5 votes vote down vote up
@HostBinding('attr.class') className = undefined;
Example #3
Source File: hero-card-title.component.ts    From canopy with Apache License 2.0 5 votes vote down vote up
@HostBinding('class.lg-hero-card-title') class = true;
Example #4
Source File: message-list-item.component.ts    From scion-microfrontend-platform with Eclipse Public License 2.0 5 votes vote down vote up
@HostBinding('attr.data-e2e-capability')
  public capability: string;
Example #5
Source File: menu-item.directive.ts    From budget-angular with GNU General Public License v3.0 5 votes vote down vote up
@HostBinding("class.selected") isSelected = false;
Example #6
Source File: ion-intl-tel-input.component.ts    From ion-intl-tel-input with MIT License 5 votes vote down vote up
@HostBinding('class.has-focus')
  hasFocus;
Example #7
Source File: image-crop.component.ts    From ASW-Form-Builder with MIT License 5 votes vote down vote up
@HostBinding('class.disabled')
    @Input() disabled = false;
Example #8
Source File: link-to.directive.ts    From router with MIT License 5 votes vote down vote up
@HostBinding('href') linkHref?: string | null;
Example #9
Source File: tooltip-copy.directive.ts    From alauda-ui with MIT License 5 votes vote down vote up
@HostBinding('class.aui-tooltip-copy')
  className = true;
Example #10
Source File: news-post-placeholder.component.ts    From ngx-admin-dotnet-starter with MIT License 5 votes vote down vote up
@HostBinding('attr.aria-label')
  label = 'Loading';
Example #11
Source File: image-viewer.directive.ts    From nghacks with MIT License 5 votes vote down vote up
@HostBinding('style.cursor') private _cursor;
Example #12
Source File: home.component.ts    From VIR with MIT License 5 votes vote down vote up
// @ts-ignore
  @HostBinding('class') activeThemeCssClass: string
Example #13
Source File: select.component.ts    From ng-event-plugins with Apache License 2.0 5 votes vote down vote up
@HostBinding('class._open')
    open = false;
Example #14
Source File: tab-nav-content.component.ts    From canopy with Apache License 2.0 5 votes vote down vote up
@HostBinding('class.lg-tab-nav-content') class = true;
Example #15
Source File: chat-form.component.ts    From qd-messages-ts with GNU Affero General Public License v3.0 5 votes vote down vote up
@HostBinding('class.file-over') fileOver = false;
Example #16
Source File: browser-outlet.component.ts    From scion-microfrontend-platform with Eclipse Public License 2.0 5 votes vote down vote up
@Input()
  @HostBinding('attr.id')
  public outletName: string;
Example #17
Source File: ngx-gallery.component.ts    From ngx-gallery-9 with MIT License 5 votes vote down vote up
@HostBinding('style.left') left: string;
Example #18
Source File: color.stories.ts    From canopy with Apache License 2.0 5 votes vote down vote up
@HostBinding('class') class = 'swatch';