Skip to content

NorthwoodsSoftware/gojs-angular-basic

Repository files navigation

gojs-angular-basic

By Northwoods Software for GoJS

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 setting up Diagram, Palette and Overview components.

When running the sample, try moving / adding / deleting nodes, editing text in the inspector, relinking nodes via ports, undoing (Ctrl-Z), and re-doing (Ctrl-Y) within the diagram. 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.

If you do not have Angular already globally installed, you may do so by running:

npm i -g @angular/cli

Running the project

In the project directory, run:

ng serve

Alternatively, if you do not have Angular installed globally, you may run:

npm run start

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 Angular's official site. To learn GoJS, check out gojs.net.

About

Simple project demonstrating usage of our GoJS/Angular components

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •