Tuesday, 12 October 2021

typescript insert

 push object to an array at particular array position.

const basedm="www."+this.array3[0].value;
     this.array3.splice(1,0,{"value":basedm,"domainSimble":0,"units":0,"Include":true});

at position 2 means index 1 it will add imp


made html required by ts component
[required]="triptype"

give this value in ts triptype:any;
later handle required condition

No comments:

Post a Comment

dropdownsearch for dyanmic fields

    I’ve enabled searchable dropdowns for all dynamic dropdown controls in Assignment Details. What I changed Added a  dropdownSearch  map...