Ontica/Empiria.Land.Intranet

View on GitHub
src/app/shared/indicators/spinner/spinner-host.directive.ts

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * @license
 * Copyright (c) La Vía Óntica SC, Ontica LLC and contributors. All rights reserved.
 *
 * See LICENSE.txt in the project root for complete license information.
 */

import { Directive, ElementRef, Input } from '@angular/core';

import { SpinnerComponent } from './spinner.component';


@Directive({
  selector: '[empNgSpinnerHost]'
})
export class SpinnerHostDirective {

  @Input('empNgSpinnerHost') spinner: SpinnerComponent;

  constructor(private el: ElementRef) {
    this.el.nativeElement.style.position = 'relative';
  }

}