🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

ngx-reactflow

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-reactflow

Angular context menu that works with templates

1.1.0
latest
Source
npm
Version published
Weekly downloads
16
128.57%
Maintainers
0
Weekly downloads
 
Created
Source

:warning: This library has been moved to ngx-xyflow!

Reactflow wrapper for Angular

npm npm npm downloads GitHub stars

This is a Reactflow wrapper library for Angular.

Installation

You can install the library with npm.

Angular 15+

    # Install ngx-reactflow and dependencies
    npm i ngx-reactflow reactflow react-dom react --save

    # Install type definitions
    npm i -D @types/react@18 @types/react-dom@18

You will also want to set useDefineForClassFields: false in your tsconfig.json

Getting started

Use NgxReactflow in your project:

import { Component } from '@angular/core';
import { ReactflowComponent } from 'ngx-reactflow';
import { Node, Edge } from 'reactflow';

@Component({
    selector: 'app-test-component',
    template: `<ngx-reactflow></ngx-reactflow>`,
    imports: [
        ReactflowComponent
    ],
    standalone: true
})
export class TestComponent {
    nodes: Node<any, string | undefined>[] = [];
    edges: Edge<any>[] = [];
}

Using Custom nodes

Keywords

angular

FAQs

Package last updated on 15 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts