lsharir / angular-d3-graph-example

[Example Project] Angular 2 with D3 interactive graph
https://lsharir.github.io/angular-d3-graph-example/
179 stars 122 forks source link

chore: Angular upgrade to v10 #14

Open ziacik opened 4 years ago

ziacik commented 4 years ago

Hi. This is an upgrade to latest Angular 10. Some changes had to be done besides automatic migrations:

  1. Removed HttpModule import which was deprecated.
  2. Updated graph component template to use public options property instead of private (didn't compile otherwise).
  3. In Link, changed source and target declaration to just Node. Otherwise the link-visual component which uses link.source.x wouldn't compile. It's not quite right as the source and target props are still initialized with numbers, didn't find another way though and everything compiles and works, so...