本文介绍了Angular2/4的流程图/流程图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用MEAN堆栈和Angular版本4开发应用程序.我需要创建动态流程图.我想要类似于 http://fiddle.jshell.net/awolf2904/aw2e3ovz/这完全符合我的要求.它使用Flowchart.js和Angular1.X.美人鱼似乎也满足了我的要求,但agagenagan支持Angular1.x.有人可以帮我吗?

I am currently developing an app using MEAN stack with Angular version 4. I have a requirement to create dynamic flowcharts. I want similar to what is available in http://fiddle.jshell.net/awolf2904/aw2e3ovz/It is exactly matchingn my requirement. It is using Flowchart.js and Angular 1.X. Also Mermaid seems to be matching my requirement but onceagan support Angular 1.x. Could someone help me in this?

推荐答案

只要该库不作为Angular包提供,您就必须通过在项目中定义一个类型来使用它:

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

此类型定义使库可用.

请参阅以下示例: http://embed.plnkr.co/OAW8ow2WU9ugKBPTG8uX/

这篇关于Angular2/4的流程图/流程图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-26 06:47