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

flowchart.js integration with angular #199

Open
chiradeep-nanabala opened this issue Feb 13, 2020 · 6 comments
Open

flowchart.js integration with angular #199

chiradeep-nanabala opened this issue Feb 13, 2020 · 6 comments

Comments

@chiradeep-nanabala
Copy link

I am trying to integrate flowchart.js with angular. I have included all the required files. But, I am getting some error like this..

zone-evergreen.js:172 Uncaught TypeError: Raphael is not a constructor
at new FlowChart (flowchart-latest.js:955)
at Object.drawSVG (flowchart-latest.js:675)
at btn.onclick (check.js:14)
at window.onload (check.js:57)
at wrapFn (zone-evergreen.js:1202)
at ZoneDelegate.invokeTask (zone-evergreen.js:400)
at Zone.runTask (zone-evergreen.js:168)
at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:481)
at invokeTask (zone-evergreen.js:1596)
at globalZoneAwareCallback (zone-evergreen.js:1633)
Can anyone find the issue..
Thanks in Advance.

@adrai
Copy link
Owner

adrai commented Feb 13, 2020

Have you included the raphael script? https://github.com/adrai/flowchart.js/blob/master/example/index.html#L9

@chiradeep-nanabala
Copy link
Author

chiradeep-nanabala commented Feb 14, 2020

Yes, I have included it. Please find the attachment of my angular app

app files.zip

assets.zip

@adrai
Copy link
Owner

adrai commented Feb 14, 2020

Sorry, I'm not familiar with angular...
but when I open your files, I get:
image

@chiradeep-nanabala
Copy link
Author

How did you execute the above files? In angular or just opened normal html file?
I am not getting the output in angular...!

@adrai
Copy link
Owner

adrai commented Feb 16, 2020

I opened the served html

@adrai
Copy link
Owner

adrai commented Feb 16, 2020

Can you create a codesandbox example?

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

No branches or pull requests

2 participants