Skip to content

Instantly share code, notes, and snippets.

Forked from AshleyGrant/app.html
Last active May 17, 2020
What would you like to do?
Activation and Children Order
<svg element.ref="svg">
<polyline element.ref="polyline"></polyline>
<pre>&lt;polyline points="${pointsAttribute}"&gt;</pre>
<button click.trigger="addPoints()">Add points</button>
export class App {
svg: SVGSVGElement;
polyline: SVGPolylineElement;
addPoints() {
for (let i = 0; i < 10; i++) {
let point: SVGPoint = this.svg.createSVGPoint();
point.x = point.y = i;
get pointsAttribute(): string {
return this.polyline.getAttribute('points');
<!doctype html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<body aurelia-app>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment