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

remove duplicates in an sorted array

  using System; public class HelloWorld {          public static void Main(string[] args)     {         int[] ar={2,2,3,3,4,6,6};          C...