| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library my_controller; | 5 library my_controller; |
| 6 | 6 |
| 7 import 'package:angular/angular.dart'; | 7 import 'package:angular/angular.dart'; |
| 8 import 'book.dart' show Book; |
| 8 | 9 |
| 9 @NgController( | 10 @NgController( |
| 10 selector: '[my-controller]', | 11 selector: '[my-controller]', |
| 11 publishAs: 'ctrl' | 12 publishAs: 'ctrl' |
| 12 ) | 13 ) |
| 13 class MyController { | 14 class MyController { |
| 14 Map<String, bool> classesMap = { | 15 Map<String, Book> bookMap = { |
| 15 'bold': false, | 16 "1": new Book('War and Peace', 'A really long book'), |
| 16 'strike': false, | 17 "2": new Book('The Old Man and the Sea', 'A really short book') |
| 17 'red': false | |
| 18 }; | 18 }; |
| 19 } | 19 } |
| OLD | NEW |