Commit 2c2d86d 1 parent 0a024e8 commit 2c2d86d Copy full SHA for 2c2d86d
File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -105,29 +105,29 @@ Let's customize the app you just created.
105
105
It creates a new ` LIElement ` containing the specified ` String ` .
106
106
107
107
``` dart
108
- Iterable<String> thingsTodo() sync* { ... }
108
+ Iterable<String> thingsTodo() sync* { /* ... */ }
109
109
110
110
[!HTMLLIElement newLI(String itemText) =>!]
111
111
[!(document.createElement('li') as HTMLLIElement)..text = itemText;!]
112
112
113
- void main() { ... }
113
+ void main() { /* ... */ }
114
114
```
115
115
116
- 3 . In the ` main() ` function, append content to the ` output ` element using
117
- ` thingsTodo() ` :
116
+ 3 . In the ` main() ` function, append content to the ` output ` element
117
+ using ` appendChild ` and the values from ` thingsTodo() ` :
118
118
119
119
``` dart
120
- Iterable<String> thingsTodo() sync* { ... }
120
+ Iterable<String> thingsTodo() sync* { /* ... */ }
121
121
122
122
HTMLLIElement newLI(String itemText) =>
123
- (document.createElement('li') as HTMLLIElement)..text = itemText;
123
+ (document.createElement('li') as HTMLLIElement)..text = itemText;
124
124
125
125
void main() {
126
126
final output = querySelector('#output');
127
127
[!for (final item in thingsTodo()) {!]
128
128
[!output?.appendChild(newLI(item));!]
129
129
[!}!]
130
- }
130
+ }
131
131
```
132
132
133
133
4 . Save your changes.
You can’t perform that action at this time.
0 commit comments