Tag:Tree menu

  • Example of angular2 / 4 tree structure menu


    Tree structure assembly import { Component, Input } from ‘@angular/core’; @Component({ selector: ‘app-tree’, templateUrl: ‘./tree.component.html’, styleUrls: [‘./tree.component.scss’] }) export class TreeComponent { //Super simple, focus: receive superior value //You can establish an interface for the tree, which is simplified as any @Input() treelists: any //Click action itemClick(i) { //Set up a service to receive the […]