Skip to content

Commit

Permalink
fix: added a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed.alatawi committed Jul 3, 2020
1 parent bb00514 commit 5cc74aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -13,7 +13,7 @@
"test-lib-ci": "npm run test-lib -- --browsers ChromeHeadlessCI --watch false",
"lint": "ng lint",
"lint-lib": "ng lint @ahmed757/ngx-treant-js",
"lint-prettier": "prettier --write '**/*.{ts,js,jsx,json}'",
"lint-prettier": "prettier --write '*.{ts,js,jsx,json}'",
"e2e": "ng e2e",
"prepublishOnly": "npm run -s build",
"commit": "git-cz",
Expand Down
Expand Up @@ -209,6 +209,7 @@ export class NgxTreantJsComponent implements AfterViewInit {
this.loadedNodes.emit({ nodes: callback.nodeDB.db, $ });
};

// create Treant instance and add its container ID
const treant = new Treant(this.data, callback, $);
treant.container_id = this.chartId;
this.loadedTreant.emit(treant);
Expand Down

0 comments on commit 5cc74aa

Please sign in to comment.