Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

call js function in Angular 12

eval(evaluation: string) {
     return eval(evaluation)
}

<div *ngFor="...">
  <div *ngIf="eval('...')"></div>
</div>
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #call #js #function #Angular
ADD COMMENT
Topic
Name
6+8 =