Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component, Optional, OnInit, Inject, Input, ViewChild } from '@angular/core';
- import { NgModel, NG_VALUE_ACCESSOR } from '@angular/forms';
- import { SelectItem, MenuItem } from 'primeng/primeng';
- // ------------------------------------------------
- // Award Number -- TextInput
- // ------------------------------------------------
- @Component({
- selector: 'award-number-input',
- templateUrl: './award-number-input.component.html',
- styleUrls: ['./award-number-input.component.scss'],
- providers: [{
- provide: NG_VALUE_ACCESSOR,
- useExisting: AwardNumberInputComponent,
- multi: true,
- }],
- })
- export class AwardNumberInputComponent extends ValueAccessorBase<string> implements OnInit {
- // Inputs and Views
- @Input() public label: string;
- @Input() public placeholder: string;
- @ViewChild(NgModel) model: NgModel;
- // Globals
- public identifier = `form-select-${identifier++}`;
- constructor() {
- super();
- }
- ngOnInit() {
- }
- }
- let identifier = 0;
Advertisement
Add Comment
Please, Sign In to add comment