style(dart): Format with dartfmt v0.2.0
Format all pure Dart code with package:dart_style v0.2.0 Command: ``` find -type f -name "*.dart" | xargs dartformat -w ```
This commit is contained in:
@ -5,7 +5,9 @@ import "package:angular2/http.dart" show Jsonp;
|
||||
import "package:angular2/src/facade/async.dart" show ObservableWrapper;
|
||||
|
||||
@Component(selector: "jsonp-app")
|
||||
@View(directives: const [NgFor], template: '''
|
||||
@View(
|
||||
directives: const [NgFor],
|
||||
template: '''
|
||||
<h1>people</h1>
|
||||
<ul class="people">
|
||||
<li *ng-for="#person of people">
|
||||
|
@ -4,7 +4,8 @@ import "package:angular2/src/web-workers/worker/application.dart"
|
||||
show WorkerMessageBus, WorkerMessageBusSource, WorkerMessageBusSink;
|
||||
import "package:angular2/src/web-workers/worker/broker.dart"
|
||||
show MessageBroker, UiArguments;
|
||||
import "package:angular2/src/web-workers/shared/serializer.dart" show Serializer;
|
||||
import "package:angular2/src/web-workers/shared/serializer.dart"
|
||||
show Serializer;
|
||||
|
||||
import "dart:isolate";
|
||||
|
||||
@ -18,7 +19,8 @@ main(List<String> args, SendPort replyTo) {
|
||||
}
|
||||
});
|
||||
|
||||
MessageBroker broker = new MessageBroker(bus, new Serializer(null, null, null), null);
|
||||
MessageBroker broker =
|
||||
new MessageBroker(bus, new Serializer(null, null, null), null);
|
||||
var args = new UiArguments("test", "tester");
|
||||
broker.runOnUiThread(args, String).then((data) {
|
||||
bus.sink.send({"type": "result", "value": data});
|
||||
|
@ -18,8 +18,7 @@ main() {
|
||||
querySelector("#echo_result")
|
||||
.appendHtml("<span class='response'>${data['value']}</span>");
|
||||
} else if (identical(data['type'], "test")) {
|
||||
bus.sink.send(
|
||||
{'type': "result", 'id': data['id'], 'value': VALUE});
|
||||
bus.sink.send({'type': "result", 'id': data['id'], 'value': VALUE});
|
||||
} else if (identical(data['type'], "result")) {
|
||||
querySelector("#ui_result")
|
||||
.appendHtml("<span class='result'>${data['value']}</span>");
|
||||
|
Reference in New Issue
Block a user