Sunday, 10 October 2021

array issue

 1.today i need to push array to an object calss i tried but got an error.

so i declared the array where exactly i need 
when check box checked(gatein(dms)) then i declared the array with name damage codes then the issue resolved.

2.2nd issue every time checkbox selected then the array become null so i given length condition then

its working fine 

finaly this is how to give array to the class.


selectDamagedata(e){debugger
    if( this.tripInformations.damagecodes.length==0){

      this.tripInformations.damagecodes=[]
    }
    this.tripInformations.damagecodes.push(e)
}

No comments:

Post a Comment

7 Common mistakes in Dot Net — You can avoid

  There are many common mistakes made during .NET (ASP.NET, .NET Core) development, which affect performance, security, and code… Code Crack...