Skip to content

Instantly share code, notes, and snippets.

View rdarder's full-sized avatar

Rafael Darder rdarder

  • Profitwell
  • Argentina
View GitHub Profile
@MattWalker
MattWalker / gist:6106393
Created July 29, 2013 18:17
A workaround to manage resolved dependencies between states using ui-router. Forgive any syntax blunderings, I've been in Coffeescript Land for a while.
// ResolveService.js
angular.module('module').factory("ResolveService", function($q) {
var resolved;
// Dictionary for deferred
// object lookup
resolved = {};
return {