Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

object.keys not working in angular html

//make a variable  in ts file
 objectKeys = Object.keys;
//in Template access it like this 
  <p>
     {{this.object[objectKeys(this.object)[0]]}}
   </p>
 
PREVIOUS NEXT
Tagged: #working #angular #html
ADD COMMENT
Topic
Name
3+5 =