SVG
A developer guide for enabling SVG binding in Aurelia 2.
Adding SVG Registration
import { SVGAnalyzer } from '@aurelia/runtime-html';
import { Aurelia } from 'aurelia';
Aurelia
.register(SVGAnalyzer) // <-- add this line
.app(MyApp)
.start();Basic SVG Bindings
<svg width="200" height="200">
<!-- Bind to standard SVG attributes -->
<circle cx.bind="circleX"
cy.bind="circleY"
r.bind="radius"
fill.bind="fillColor" />
<!-- Use interpolation for transform -->
<rect x="10" y="10"
width.bind="rectWidth"
height.bind="rectHeight"
transform="rotate(${rotation} 50 50)" />
</svg>Dynamic SVG Charts
SVG Path Animations
Interactive SVG Elements
SVG with CSS Classes
SVG Gradients with Bindings
Supported SVG Elements
Important Notes
Related Documentation
Last updated
Was this helpful?