File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 10
10
11
11
<!-- template for the polygraph component. -->
12
12
< 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 >
20
18
</ script >
21
19
22
20
<!-- demo root element -->
23
21
< div id ="demo ">
24
22
<!-- 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 >
26
26
<!-- controls -->
27
27
< div v-repeat ="stats ">
28
28
< label > {{label}}</ label >
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ var stats = [
11
11
// A resusable polygon graph component
12
12
Vue . component ( 'polygraph' , {
13
13
template : '#polygraph-template' ,
14
- replace : true ,
15
14
computed : {
16
15
// a computed property for the polygon's points
17
16
points : function ( ) {
You can’t perform that action at this time.
0 commit comments