Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

angular pass data without -let

<!-- Example of using a template variable, named "fruit" -->

<ng-template [ngIf]="tableSettings.selection.selected.length > 0">
  <button #fruit
    class="mat-button"
    (click)="callMethod(fruit)">
  </button>
</ng-template>
Source by angular.io #
 
PREVIOUS NEXT
Tagged: #angular #pass #data
ADD COMMENT
Topic
Name
4+8 =