@@ -108,8 +108,7 @@ class AppComponent implements OnInit, AfterViewInit {
108
108
109
109
bool onSave ([UIEvent event = null ]) {
110
110
HtmlElement el = event? .target;
111
- var evtMsg =
112
- event != null ? ' Event target is ${el .innerHtml }.' : '' ;
111
+ var evtMsg = event != null ? ' Event target is ${el .innerHtml }.' : '' ;
113
112
alerter ('Saved. $evtMsg ' );
114
113
return false ;
115
114
}
@@ -128,7 +127,7 @@ class AppComponent implements OnInit, AfterViewInit {
128
127
String getStyles (Element el) {
129
128
final style = el.style;
130
129
final Map styles = < String , String > {};
131
- for (var i = 0 ; i < style.length; i++ ) {
130
+ for (var i = 0 ; i < style.length; i++ ) {
132
131
styles[style.item (i)] = style.getPropertyValue (style.item (i));
133
132
}
134
133
return JSON .encode (styles);
@@ -144,8 +143,8 @@ class AppComponent implements OnInit, AfterViewInit {
144
143
};
145
144
// #docregion setClasses
146
145
// compensate for DevMode (sigh)
147
- if (JSON .encode (_previousClasses) ==
148
- JSON . encode (classes)) return _previousClasses;
146
+ if (JSON .encode (_previousClasses) == JSON . encode (classes))
147
+ return _previousClasses;
149
148
_previousClasses = classes;
150
149
// #enddocregion setClasses
151
150
return classes;
@@ -167,7 +166,7 @@ class AppComponent implements OnInit, AfterViewInit {
167
166
bool isBold = false ;
168
167
String fontSize = 'large' ;
169
168
170
- Map <String ,String > setStyle () {
169
+ Map <String , String > setStyle () {
171
170
return {
172
171
'font-style' : isItalic ? 'italic' : 'normal' ,
173
172
'font-weight' : isBold ? 'bold' : 'normal' ,
@@ -205,13 +204,16 @@ class AppComponent implements OnInit, AfterViewInit {
205
204
int heroesNoTrackByChangeCount = 0 ;
206
205
int heroesWithTrackByChangeCount = 0 ;
207
206
208
- @ViewChildren ('noTrackBy' ) QueryList <ElementRef > childrenNoTrackBy;
209
- @ViewChildren ('withTrackBy' ) QueryList <ElementRef > childrenWithTrackBy;
207
+ @ViewChildren ('noTrackBy' )
208
+ QueryList <ElementRef > childrenNoTrackBy;
209
+ @ViewChildren ('withTrackBy' )
210
+ QueryList <ElementRef > childrenWithTrackBy;
210
211
211
212
void _detectNgForTrackByEffects () {
212
213
/// Converts [viewChildren] to a list of [Element] .
213
214
List <Element > _extractChildren (QueryList <ElementRef > viewChildren) =>
214
- viewChildren.toList ()[0 ].nativeElement.children.toList () as List <Element >;
215
+ viewChildren.toList ()[0 ].nativeElement.children.toList ()
216
+ as List <Element >;
215
217
216
218
{
217
219
// Updates 'without TrackBy' statistics.
0 commit comments