$routeProvider.when('/parking/edit/:parkingId', {
templateUrl: '/Content1/partials/newParking.html',
resolve: { parkingEditData: function ($location) {
var idA = $location.$$path.split("/");
parkingEditCtrlPr(idA[idA.length-1]);
}
}
})