title: Hide the empty field data that is showing undefined in angular
body: <p>i want hide the data of the empty fields that are shown in console as undefined. please explain your answer as am new to angular .</p>
  
  <p>thanks in advance.</p>
  
  <p><img src="https://i.stack.imgur.com/PLRB5.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/9pgj1.png" alt="this is my component"></p>