How to make mat-tree component Angular Material 6.0.1

后端 未结 1 1169
予麋鹿
予麋鹿 2020-12-04 02:50

I am trying to do a material angular mat-tree based app but when i run this code it is not displaying values and i am not getting any error how can i resolve this help me ou

相关标签:
1条回答
  • 2020-12-04 03:18

    It has the content below {{node :json}} added, you just need to get the correct data out of the node object.

        <button mat-icon-button matTreeNodeToggle
                [attr.aria-label]="'toggle ' + node.filename">
          <mat-icon class="mat-icon-rtl-mirror">
            {{nestedTreeControl.isExpanded(node) ? 'expand_more' : 'chevron_right'}}
          </mat-icon>
          {{node | json}}
        </button>
    
    0 讨论(0)
提交回复
热议问题