* Reuse a view, just reload data if necessary. * * @param {Directive} view * @param {Transition} transition
(view, transition)
| 1267 | */ |
| 1268 | |
| 1269 | function reuse(view, transition) { |
| 1270 | var component = view.childVM; |
| 1271 | var dataHook = getRouteConfig(component, 'data'); |
| 1272 | if (dataHook) { |
| 1273 | loadData(component, transition, dataHook); |
| 1274 | } |
| 1275 | } |
| 1276 | |
| 1277 | /** |
| 1278 | * Asynchronously load and apply data to component. |
no test coverage detected