https://github.com/yworks/yfiles-angular-integration-basic
A basic sample app for the integration of yFiles for HTML with Angular
https://github.com/yworks/yfiles-angular-integration-basic
angular angular-cli diagramming graph typescript yfiles
Last synced: 5 months ago
JSON representation
A basic sample app for the integration of yFiles for HTML with Angular
- Host: GitHub
- URL: https://github.com/yworks/yfiles-angular-integration-basic
- Owner: yWorks
- License: mit
- Created: 2020-01-30T10:48:06.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-08-15T07:50:24.000Z (5 months ago)
- Last Synced: 2025-08-15T09:24:55.564Z (5 months ago)
- Topics: angular, angular-cli, diagramming, graph, typescript, yfiles
- Language: TypeScript
- Homepage: https://yworks.com/yfileshtml
- Size: 531 KB
- Stars: 6
- Watchers: 11
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# yFiles integration for Angular CLI
This sample application serves as a basic scaffold of how to integrate [yFiles for HTML](https://www.yfiles.com/the-yfiles-sdk/web/yfiles-for-html) in an [Angular CLI](https://cli.angular.io/) application.
**To run this project, a valid [yFiles for HTML](https://www.yfiles.com/the-yfiles-sdk/web/yfiles-for-html) version is required. You can evaluate yFiles 60 days free of charge on [my.yworks.com](https://my.yworks.com/signup?product=YFILES_HTML_EVAL).**
## Version Information
- Angular CLI 19
- yFiles for HTML 3.0
## Getting Started
Just clone this repository with
```
git clone https://github.com/yWorks/yfiles-angular-integration-basic
```
Then, extract a yFiles Evaluation package besides it and run
```
npm install
```
You can serve the application on [http://localhost:4200/](http://localhost:4200/) with
```
npm run start
```
## Under the Hood
This project is a default Angular CLI application, where yFiles was added as an additional dependency to integrate a basic graph component.
A step-by-step description of how to integrate yFiles in an Angular application can be found [here](integration-howto.md).
## What's next?
This basic yFiles integration can be used as a starting point to test the capabilities of yFiles or to implement your own use case. yFiles for HTML comes with a lot of [source-code demos](https://www.yfiles.com/demos) that show different aspects of the library.
You can browse through the demos and look for features that you find interesting for your use case and integrate it in this basic component to build a more sophisticated application.
The yFiles package also contains a more extensive [Angular CLI integration demo](https://www.yfiles.com/demos/toolkit/angular/) ([GitHub](https://github.com/yWorks/yfiles-for-html-demos/tree/master/demos/toolkit/angular)).
Furthermore, there is an extensive [Developer's Guide](https://docs.yworks.com/yfileshtml/#/dguide/introduction#top) that covers anything from graph creation and styling to automatic layouts and advanced customizations.
## Create a Diagram Application with Angular
The [App Generator](https://www.yworks.com/products/app-generator) is a tool that lets you interactively create a diagram
application prototype to visualize your data. Select features like editing, context menu, graph search, or printing
and customize the interaction with the graph. Generate Angular code for your prototype and use it with a valid
[yFiles for HTML](https://www.yfiles.com/the-yfiles-sdk/web/yfiles-for-html) version.
## Support
If you need help with your setup or a certain feature, don't hesitate to contact our support through
the [Customer Center](https://my.yworks.com/) or by email [yfileshtml@yworks.com](mailto:yfileshtml@yworks.com).