$routeParams doesn't work in resolve function

Solution 1:

You need to use $route.current.params.key instead. The $routeParams is updated only after a route is changed. So your code should look along those lines:

NoteController.resolve = {
    note: function($route, Note) {
         return Note.get($route.current.params.key);
    }
}