/gojs-angular-basic

Simple project demonstrating usage of our GoJS/Angular components

Primary LanguageTypeScript

gojs-angular-basic

By Northwoods Software for GoJS 2.1

This project provides a basic example of using GoJS in an Angular app. Check out the Intro page on using GoJS with Angular for more information.

It makes use of the gojs-angular package to handle some boilerplate for setting up Diagram, Palette and Overview components.

When running the sample, try moving around nodes, adding / deleting nodes, editing text in the inspector, relinking, undoing (Ctrl-Z), etc. within the diagram and you'll notice the changes are reflected in app-level data. You'll also notice that changes made in the inspector are reflected in the diagram.

Installation

Start by running npm install to install all necessary dependencies.

Running the project

In the project directory, run:

ng serve

Runs the app in the development mode.
Open http://localhost:4200 to view it in the browser.

The page will reload if you make edits.

Learn More

To learn Angular, check out the Angular's official site. To learn GoJS, check out gojs.net.