| OLD | NEW |
| 1 // Copyright 2013 The Polymer Authors. All rights reserved. | 1 // Copyright 2013 The Polymer Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
| 3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
| 4 library todomvc.web.lib_elements.simple_router; | 4 library todomvc.web.lib_elements.simple_router; |
| 5 | 5 |
| 6 import 'dart:async'; | 6 import 'dart:async'; |
| 7 import 'dart:html'; | 7 import 'dart:html'; |
| 8 import 'package:polymer/polymer.dart'; | 8 import 'package:polymer/polymer.dart'; |
| 9 | 9 |
| 10 // A very simple router for TodoMVC. Real app should use package:route, but it | 10 // A very simple router for TodoMVC. Real app should use package:route, but it |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 } | 30 } |
| 31 | 31 |
| 32 leftView() { | 32 leftView() { |
| 33 _sub.cancel(); | 33 _sub.cancel(); |
| 34 } | 34 } |
| 35 | 35 |
| 36 routeChanged() { | 36 routeChanged() { |
| 37 fire('route', detail: route); | 37 fire('route', detail: route); |
| 38 } | 38 } |
| 39 } | 39 } |
| OLD | NEW |