| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 3 for details. All rights reserved. Use of this source code is governed by a | 3 for details. All rights reserved. Use of this source code is governed by a |
| 4 BSD-style license that can be found in the LICENSE file. | 4 BSD-style license that can be found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 | 6 |
| 7 <polymer-element name="searchable-list"> | 7 <polymer-element name="searchable-list"> |
| 8 <template> | 8 <template> |
| 9 <div class="container"> | 9 <div class="container"> |
| 10 <input class="form-control" type="text" value="{{searchParam}}"> | 10 <input class="form-control" type="text" value="{{searchParam}}"> |
| 11 <template if="{{results.length > 0}}"> | 11 <template if="{{results.length > 0}}"> |
| 12 <ul class="list-unstyled"> | 12 <ul class="list-unstyled"> |
| 13 <template repeat="{{result in results}}"> | 13 <template repeat="{{result in results}}"> |
| 14 <li>{{result}}</li> | 14 <li>{{result}}</li> |
| 15 </template> | 15 </template> |
| 16 </ul> | 16 </ul> |
| 17 </template> | 17 </template> |
| 18 </div> | 18 </div> |
| 19 </template> | 19 </template> |
| 20 | 20 |
| 21 <script type="application/dart;component=1" | 21 <script type="application/dart" src="searchable_list.dart"></script> |
| 22 src="searchable_list.dart"></script> | |
| 23 </polymer-element> | 22 </polymer-element> |
| OLD | NEW |