Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit 36893a2

Browse files
committed
fix(basic-shapes basic-elements): Display circles svg even if user comes from one of these pages
Id was the same, I guess it's a problem with Ionic pages transition #1
1 parent 1118498 commit 36893a2

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.editorconfig

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@ root = true
77
indent_style = space
88
indent_size = 2
99

10+
# 4 space indentation
11+
[*.ts]
12+
indent_style = space
13+
indent_size = 4
14+
1015
# We recommend you to keep these unchanged
1116
end_of_line = lf
1217
charset = utf-8
1318
trim_trailing_whitespace = true
1419
insert_final_newline = true
1520

1621
[*.md]
17-
trim_trailing_whitespace = false
22+
trim_trailing_whitespace = false

src/pages/basic-elements/basic-elements.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h2>Creating SVG Elements Based on Data</h2>
1010

1111
<div padding>
1212

13-
<div id="circles"></div>
13+
<div id="circles-basic"></div>
1414

1515
<expandable showText="See the code" hideText="Hide the code">
1616
<textarea ion-prism="javascript">

src/pages/basic-elements/basic-elements.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class BasicElementsPage {
2424
let circleRadii = [ 40, 20, 10 ];
2525

2626
// an SVG element to hold the SVG Circles
27-
let svgContainer = d3.select( '#circles' ).append( 'svg' )
27+
let svgContainer = d3.select( '#circles-basic' ).append( 'svg' )
2828
.attr( 'width', 300 )
2929
.attr( 'height', 100 )
3030
.style( 'border', '1px solid black' );

0 commit comments

Comments
 (0)