File tree Expand file tree Collapse file tree 3 files changed +37
-2
lines changed
static/usage/v6/back-button/custom Expand file tree Collapse file tree 3 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 1
1
import Playground from '@site/src /components/global/Playground';
2
2
3
- import javascript from './javascript.md';
3
+ import javascript_index_html from './javascript/index_html.md';
4
+ import javascript_index_ts from './javascript/index_ts.md';
4
5
5
6
import angular_example_component_html from './angular/example_component_html.md';
6
7
import angular_example_component_ts from './angular/example_component_ts.md';
@@ -18,7 +19,12 @@ import vue_page_two from './vue/page_two_vue.md';
18
19
<Playground
19
20
version="6"
20
21
code={{
21
- javascript,
22
+ javascript: {
23
+ files: {
24
+ 'index.html': javascript_index_html,
25
+ 'index.ts': javascript_index_ts,
26
+ },
27
+ },
22
28
angular: {
23
29
files: {
24
30
'src/app/example.component.html': angular_example_component_html,
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ ``` ts
2
+ import { defineCustomElements } from ' @ionic/core/loader' ;
3
+
4
+ import { addIcons } from ' ionicons' ;
5
+ import { caretBack } from ' ionicons/icons' ;
6
+
7
+ /* Core CSS required for Ionic components to work properly */
8
+ import ' @ionic/core/css/core.css' ;
9
+
10
+ /* Basic CSS for apps built with Ionic */
11
+ import ' @ionic/core/css/normalize.css' ;
12
+ import ' @ionic/core/css/structure.css' ;
13
+ import ' @ionic/core/css/typography.css' ;
14
+
15
+ /* Optional CSS utils that can be commented out */
16
+ import ' @ionic/core/css/padding.css' ;
17
+ import ' @ionic/core/css/float-elements.css' ;
18
+ import ' @ionic/core/css/text-alignment.css' ;
19
+ import ' @ionic/core/css/text-transformation.css' ;
20
+ import ' @ionic/core/css/flex-utils.css' ;
21
+ import ' @ionic/core/css/display.css' ;
22
+
23
+ /* Theme variables */
24
+ import ' ./theme/variables.css' ;
25
+
26
+ addIcons ({ caretBack });
27
+
28
+ defineCustomElements ();
29
+ ```
You can’t perform that action at this time.
0 commit comments