UNPKG

ng-units

Version:

Angular component library for units of measurement.

24 lines (23 loc) 1.07 kB
import { OnDestroy, AfterViewInit, EventEmitter } from '@angular/core'; import { ElementRef } from '@angular/core'; import { Quantity } from './quantity'; import { Unit } from './unit'; import { SystemOfUnits } from './system-of-units.service'; import * as i0 from "@angular/core"; export declare class UnitSelectComponent implements OnDestroy, AfterViewInit { private system; set quantityAttr(value: string | Quantity); changeUnit: EventEmitter<Unit>; quantity?: Quantity; private currentUnit?; private select; private subscription?; constructor(elementRef: ElementRef, system: SystemOfUnits); ngAfterViewInit(): void; ngOnDestroy(): void; private initQuantity; private selectUnit; change(): void; static ɵfac: i0.ɵɵFactoryDeclaration<UnitSelectComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<UnitSelectComponent, "[ngUnitSelect]", never, { "quantityAttr": { "alias": "ngUnitSelect"; "required": false; }; }, { "changeUnit": "changeUnit"; }, never, never, false, never>; }