Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: third_party/polymer/components/app-route/app-route.html

Issue 3010683002: Update Polymer components. (Closed)
Patch Set: Rebase Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!-- 1 <!--
2 @license 2 @license
3 Copyright (c) 2016 The Polymer Project Authors. All rights reserved. 3 Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt 4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
7 Code distributed by Google as part of the polymer project is also 7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --> 9 -->
10 10
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 properties: { 93 properties: {
94 /** 94 /**
95 * The URL component managed by this element. 95 * The URL component managed by this element.
96 */ 96 */
97 route: { 97 route: {
98 type: Object, 98 type: Object,
99 notify: true 99 notify: true
100 }, 100 },
101 101
102 /** 102 /**
103 * The pattern of slash-separated segments to match `path` against. 103 * The pattern of slash-separated segments to match `route.path` against .
104 * 104 *
105 * For example the pattern "/foo" will match "/foo" or "/foo/bar" 105 * For example the pattern "/foo" will match "/foo" or "/foo/bar"
106 * but not "/foobar". 106 * but not "/foobar".
107 * 107 *
108 * Path segments like `/:named` are mapped to properties on the `data` o bject. 108 * Path segments like `/:named` are mapped to properties on the `data` o bject.
109 */ 109 */
110 pattern: { 110 pattern: {
111 type: String 111 type: String
112 }, 112 },
113 113
(...skipping 12 matching lines...) Expand all
126 */ 126 */
127 queryParams: { 127 queryParams: {
128 type: Object, 128 type: Object,
129 value: function() { 129 value: function() {
130 return {}; 130 return {};
131 }, 131 },
132 notify: true 132 notify: true
133 }, 133 },
134 134
135 /** 135 /**
136 * The part of `path` NOT consumed by `pattern`. 136 * The part of `route.path` NOT consumed by `pattern`.
137 */ 137 */
138 tail: { 138 tail: {
139 type: Object, 139 type: Object,
140 value: function() {return {path: null, prefix: null, __queryParams: nu ll};}, 140 value: function() {return {path: null, prefix: null, __queryParams: nu ll};},
141 notify: true 141 notify: true
142 }, 142 },
143 143
144 /**
145 * Whether the current route is active. True if `route.path` matches the
146 * `pattern`, false otherwise.
147 */
144 active: { 148 active: {
145 type: Boolean, 149 type: Boolean,
146 notify: true, 150 notify: true,
147 readOnly: true 151 readOnly: true
148 }, 152 },
149 153
150 _queryParamsUpdating: { 154 _queryParamsUpdating: {
151 type: Boolean, 155 type: Boolean,
152 value: false 156 value: false
153 }, 157 },
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 } 412 }
409 if (setObj.tail !== undefined) { 413 if (setObj.tail !== undefined) {
410 this._pathEffector('tail', this.tail); 414 this._pathEffector('tail', this.tail);
411 this._notifyChange('tail'); 415 this._notifyChange('tail');
412 } 416 }
413 417
414 } 418 }
415 }); 419 });
416 })(); 420 })();
417 </script> 421 </script>
OLDNEW
« no previous file with comments | « third_party/polymer/components/app-route/README.md ('k') | third_party/polymer/components/app-route/bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698