MCPcopy Create free account
hub / github.com/ember-learn/ember-api-docs / handleHashIntent

Function handleHashIntent

app/utils/url-hash-polyfill.js:107–115  ·  view source on GitHub ↗
(transition)

Source from the content-addressed store, hash-verified

105 let routerService = owner.lookup('service:router');
106
107 function handleHashIntent(transition) {
108 let { url } = transition.intent || {};
109
110 if (!url) {
111 return;
112 }
113
114 eventuallyTryScrollingTo(owner, url);
115 }
116
117 routerService.on('routeDidChange', handleHashIntent);
118

Callers

nothing calls this directly

Calls 1

eventuallyTryScrollingToFunction · 0.85

Tested by

no test coverage detected