Skip to content

Instantly share code, notes, and snippets.

@adaptivedev
Created September 9, 2014 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adaptivedev/4d2404cf36256bb749f4 to your computer and use it in GitHub Desktop.
Save adaptivedev/4d2404cf36256bb749f4 to your computer and use it in GitHub Desktop.
ionic.bundle.js:11731 is throw err on line 18 for me: version: '1.0.0-beta.11'
function createInternalInjector(cache, factory) {
function getService(serviceName) {
if (cache.hasOwnProperty(serviceName)) {
if (cache[serviceName] === INSTANTIATING) {
throw $injectorMinErr('cdep', 'Circular dependency found: {0}', path.join(' <- '));
}
return cache[serviceName];
} else {
try {
path.unshift(serviceName);
cache[serviceName] = INSTANTIATING;
return cache[serviceName] = factory(serviceName);
} catch (err) {
if (cache[serviceName] === INSTANTIATING) {
delete cache[serviceName];
}
throw err;
} finally {
path.shift();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment