Using AngularJS route resolve