import { Component, OnInit, Input, HostBinding } from "@angular/core"; import { FormGroup } from "@angular/forms"; import { IDynamicBaseControl, IDyanmicNumberControl } from "../../interfaces/dynamic-control.interface"; @Component({ selector: "dynamic-number-range", template: `
`, styles: [] }) export class NumberRangeComponent implements OnInit { @HostBinding('class') className: string; @Input() control: IDyanmicNumberControl; @Input() form: FormGroup; options: any; constructor() {} ngOnInit() { this.options = this.control.control; this.className = this.control.className ? this.control.className : 'col-12 col-md-6 col-xl-3 col-el-2'; } }