Skip to content

Commit 611486c

Browse files
committed
update svg example
1 parent 7df70e7 commit 611486c

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

examples/svg/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010

1111
<!-- template for the polygraph component. -->
1212
<script type="text/x-template" id="polygraph-template">
13-
<svg width="200" height="200">
14-
<polygon v-attr="points: points"></polygon>
15-
<circle cx="100" cy="100" r="80"></circle>
16-
<text v-component="axis-label" v-repeat="stats" v-attr="x:x, y:y">
17-
{{label}}
18-
</text>
19-
</svg>
13+
<polygon v-attr="points:points"></polygon>
14+
<circle cx="100" cy="100" r="80"></circle>
15+
<text v-repeat="stats" v-component="axis-label" v-attr="x:x, y:y">
16+
{{label}}
17+
</text>
2018
</script>
2119

2220
<!-- demo root element -->
2321
<div id="demo">
2422
<!-- Use the component -->
25-
<svg v-component="polygraph" v-with="stats:stats"></svg>
23+
<svg width="200" height="200">
24+
<g v-component="polygraph" v-with="stats:stats"></g>
25+
</svg>
2626
<!-- controls -->
2727
<div v-repeat="stats">
2828
<label>{{label}}</label>

examples/svg/svg.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ var stats = [
1111
// A resusable polygon graph component
1212
Vue.component('polygraph', {
1313
template: '#polygraph-template',
14-
replace: true,
1514
computed: {
1615
// a computed property for the polygon's points
1716
points: function () {

0 commit comments

Comments
 (0)