OrgChart icon indicating copy to clipboard operation
OrgChart copied to clipboard

Implement library in angular-cli project

Open miloskovacevic opened this issue 8 years ago • 2 comments

Hi everyone!

I'm having trouble implementing this library in angular-cli (ver. 1.2.6) project. After npm install orgchart i do this: angular_error

...but getting error when i start the app: angular_error2

I do have jquery installed and works fine. Is there anyone with similar problem? Thanks!

miloskovacevic avatar Jan 23 '18 15:01 miloskovacevic

Hello, The issue with you is that you haven't add the jquery.orgchart.min.js file to the jQuery $.fn object, You should add the both with jQuery inside the src/index.html file with the css styles.

check this repo, I've created for you https://github.com/Almo7aya/orgchart-with-angular

Almo7aya avatar Feb 19 '18 10:02 Almo7aya

Hi @miloskovacevic @Almo7aya ng-orgchart has been released -- https://github.com/dabeng/ng-orgchart/

dabeng avatar Dec 27 '19 07:12 dabeng