1<!-- 2@license 3Copyright (c) 2016 The Polymer Project Authors. All rights reserved. 4This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt 5The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 6The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt 7Code distributed by Google as part of the polymer project is also 8subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt 9--> 10 <link rel='import' href='../app-route.html'> 11 <link rel='import' href='../app-location.html'> 12 13 14 15 <dom-module id="observer-tester"> 16 <template> 17 <app-location route="{{route}}"></app-location> 18 <app-route 19 route="{{route}}" 20 pattern="/report/:id" 21 data="{{data}}" 22 active="{{active}}"></app-route> 23 </template> 24 <script> 25 Polymer({ 26 is: 'observer-tester', 27 properties: { 28 route: { 29 type: Object, 30 notify:true 31 }, 32 data: { 33 type: Object, 34 notify: true 35 }, 36 active: { 37 type: Boolean, 38 value: false, 39 observer: 'checkActive' 40 } 41 }, 42 checkActive: function(active) { 43 var x = 1; 44 } 45 }); 46 </script> 47 </dom-module> 48