angular-d3-graph-example
angular-d3-graph-example copied to clipboard
chore: Angular upgrade to v10
Hi. This is an upgrade to latest Angular 10. Some changes had to be done besides automatic migrations:
- Removed
HttpModuleimport which was deprecated. - Updated
graphcomponent template to use publicoptionsproperty instead of private (didn't compile otherwise). - In
Link, changedsourceandtargetdeclaration to justNode. Otherwise thelink-visualcomponent which useslink.source.xwouldn't compile. It's not quite right as thesourceandtargetprops are still initialized with numbers, didn't find another way though and everything compiles and works, so...