Flowcharts / Flow Diagrams for Angular2/4

折月煮酒 提交于 2019-12-04 21:55:57

As long as the libraries are not available as Angular packages you have to utilize it by defining a typing in your project:

declare var flowchart:any

This type definition makes the library available.

See this plunker example: http://embed.plnkr.co/OAW8ow2WU9ugKBPTG8uX/

I believe the fiddle you are referencing shows quite nicely that Flowchart.js really is not bound to the version of angular at all. After all that library simply updates a part of the DOM which angular just manages. There is no tight integration between the two.

So basically you can just take the official migration guide and upgrade the code you have from version 1 to version 4. The flowchart js specific parts will be largely unaffected.

We also had to port our flowchart solution for AngularJS to Angular 2/4/... and the changes were all just pure angular specific changes. The integrative part was mostly the same and it will be the same for flowchart.js

Full disclosure: I work for the company that creates the library that is used in the example I linked, however on SO I do not represent my employer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!