Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hi,I want to use Nestable in the angular project,How do I use it #82

Open
zhangyuyuan123 opened this issue Sep 25, 2017 · 1 comment
Labels

Comments

@zhangyuyuan123
Copy link

Expected behavior

Actual behavior

Steps to reproduce the behavior

Fork this template to reproduce issue.

@pjona pjona added the question label Oct 22, 2017
@WongYueKeung
Copy link

WongYueKeung commented Dec 16, 2021

我写的:

<ng-template #tree let-node="node">
    <ol class="dd-list">
      <li class="dd-item dd3-item" [class]="item.classes" [attr.data-id]="item.id" *ngFor="let item of node">
        <div class="dd-handle dd3-handle" (mouseenter)="itemButtonShow[item.id]=true"
             (mouseleave)="itemButtonShow[item.id]=false" (touchstart)="itemTouchStart(item)">
          <div class="dd3-content">
            {{item.content}}
          </div>
        </div>
        <ng-container *ngIf="item.children">
          <ng-template *ngTemplateOutlet="tree;context:{node:item.children}"></ng-template>
        </ng-container>
      </li>
    </ol>
  </ng-template>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants