Originally published on JavaScript in Plain English:https://javascript.plainenglish.io/design-node-based-interfaces-in-angular-a-beginners-guide-with-foblex-flow-b3160ac3edbb
Learn how to render a flow, create basic draggable nodes, and connect them. This is the foundation for your AI low-code platform.
In this article, we’ll build a minimal interactive flow with draggable nodes and dynamic connections using Foblex Flow.
View the source code on GitHub
To add Foblex Flow to your Angular project:
Let’s create the smallest useful example: two nodes and one connection.
Foblex Flow does not ship default styles, so you fully control the look.
<f-flow>: root component that manages flow state.<f-canvas>: workspace where nodes and connections are rendered.fNode: directive that turns an element into a node.fNodeOutput / fNodeInput: source and target connectors.<f-connection>: renders a connection by fOutputId and fInputId.Note: fOutputId and fInputId belong to different collections, so they may match technically, but it is better to keep them distinct.
[fNodePosition] coordinates.fNode and f-connection elements.fOutputConnectableSide, fInputConnectableSide.fType and behavior with fBehavior.fType values: straight, bezier, segment (or custom string).
fBehavior values: fixed, fixed_center, floating (default: fixed).
fNode.[fNodePosition]: node is not rendered.fOutputId / fInputId: connection is not rendered.<f-canvas>: fNode and fConnection won’t work.fNode elements are registered with positions.fConnection resolves related connectors by IDs.In the next part, we’ll create custom Angular node components and add palette-based drag-and-drop.
Official docs: flow.foblex.com
If you like the project — leave a ⭐ on GitHub, join the discussions, and share your feedback!