Skip to content
Advertisement

How to handle complex rowspan in angular 6?

I have created table from the below mentioned JSON which works fine. I have certain condition that needs to be handled. the function which i used is also mentioned here.I also attached output image for the same.Help for the same is highly appreciated… Thanks in advance enter image description here Conditions :

  • if email row is empty need to remove that particular row.
  • Let’s say value2 has one value in email, in that case it should be displayed.
JavaScript

Advertisement

Answer

Seems like you want to put in column (attr) level validations, so in the html while looping through it you will need to implement the checks

https://stackblitz.com/edit/angular-zm1ap1?file=src/app/app.component.html

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement