aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/cookbook/helloworld.ngdoc
diff options
context:
space:
mode:
authorIgor Minar2013-03-08 11:43:37 -0800
committerIgor Minar2013-03-08 12:01:05 -0800
commit55856565c23586ccf035824d2857ab1200316e13 (patch)
tree8aebe2b79b113c3aee094eab14cf43bf5a784f47 /docs/content/cookbook/helloworld.ngdoc
parent13968343d4fe938edc84d39cb2d86e233f97ecda (diff)
downloadangular.js-55856565c23586ccf035824d2857ab1200316e13.tar.bz2
fix($route): make nextRoute.$route private
the `nextRoute` object available in `$routeChangeStart` handler accidentaly leaked property which pointed to the route definition currently being matched. this was done just for the internal needs of the `$route` implementation and was never documented as public api. Some confusion arouse around why the $route property was not always available on the `nextRoute` object (see #1907). The right thing for us to do is to prefix the property with $$ for now and refactor the code to remove the property completely in the future. Application developers should use the `nextRoute` object itself rather than its `$route` property. The main diff is that nextRoute inherits from the object referenced by $route. BREAKING CHANGE: in $routeChangeStart event, nextRoute.$route property is gone. Use the nextRoute object instead of nextRoute.$route. Closes #1907
Diffstat (limited to 'docs/content/cookbook/helloworld.ngdoc')
0 files changed, 0 insertions, 0 deletions
'>120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302