Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

why in angular template i cant use Object.Keys()

//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: #angular #template
ADD COMMENT
Topic
Name
6+6 =