$routeProvider.when('/parking/edit/:parkingId', { templateUrl: '/Content1/partials/newParking.html', resolve: { parkingEditData: function ($route) { var id = $route.current.params.parkingId; ... } } })