| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 import 'dart:html'; |
| 6 |
| 7 import 'package:polymer_expressions/polymer_expressions.dart'; |
| 8 import 'package:mdv/mdv.dart' as mdv; |
| 9 |
| 10 import 'person.dart'; |
| 11 |
| 12 main() { |
| 13 mdv.initialize(); |
| 14 var john = new Person('John', 'Messerly', ['A', 'B', 'C']); |
| 15 var justin = new Person('Justin', 'Fagnani', ['D', 'E', 'F']); |
| 16 var globals = { |
| 17 'uppercase': (String v) => v.toUpperCase(), |
| 18 'people': [john, justin], |
| 19 }; |
| 20 |
| 21 query('#test') |
| 22 ..bindingDelegate = new PolymerExpressions(globals: globals) |
| 23 ..model = john; |
| 24 |
| 25 query('#test2').model = john; |
| 26 } |
| OLD | NEW |