Answer the question
In order to leave comments, you need to log in
How to get dynamic url parts in $routeProvider
My data is loaded in resolve before the controller is launched, but I can’t get to the "parkingId" there. data appears in $route later. Tell me how you can do better (or even refuse to load data before the controller starts)?
$routeProvider.when('/parking/edit/:parkingId', {
templateUrl: '/Content1/partials/newParking.html',
resolve: { parkingEditData: function ($location) {
var idA = $location.$$path.split("/");
parkingEditCtrlPr(idA[idA.length-1]);
}
}
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question