Skip to content

Commit

Permalink
add id for every node
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeng committed Jan 9, 2020
1 parent abf688c commit 10f08bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/ng-orgchart/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@dabeng/ng-orgchart",
"description": "organization chart component based angular",
"version": "1.0.0",
"version": "1.0.1",
"peerDependencies": {
"@angular/common": "^8.0.3",
"@angular/core": "^8.0.3"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="oc-node" [class.oc-is-selected]="isSelected" (click)="onClickNode($event)">
<div class="oc-node" [id]="datasource.id" [class.oc-is-selected]="isSelected" (click)="onClickNode($event)">
<ng-container
*ngTemplateOutlet="nodeTemplate ? nodeTemplate : defaultNodeTemplate; context:{ datasource:datasource,nodeHeading: nodeHeading, nodeContent: nodeContent }">
</ng-container>
Expand Down

0 comments on commit 10f08bf

Please sign in to comment.