Skip to content

Commit

Permalink
fixed brokeness due to ngmin by explicitly named dependencies injecte…
Browse files Browse the repository at this point in the history
…d into the intent.

This is necessary for all non main level elements. Some confusing text about it is present under the "Minification Safe" heading in https://github.com/yeoman/generator-angular
fixes #9
  • Loading branch information
Ken Gullaksen committed Mar 2, 2014
1 parent 13c406e commit 1be2d07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/scripts/app.coffee
Expand Up @@ -36,9 +36,10 @@ angular.module('intentApp', ['ngRoute'])
templateUrl: 'partials/intent.html'
controller: 'IntentCtrl'
resolve:
intent: ($q, $route, intentProxy) ->
intent: ['$q', '$route', 'intentProxy', ($q, $route, intentProxy) ->
deferred = $q.defer()
intentProxy.read $route.current.params.id, deferred.resolve
deferred.promise
]

.otherwise redirectTo: '/'

0 comments on commit 1be2d07

Please sign in to comment.