$routeProvider, it provide the route based on the path i.e we have url after that that alongwith url then after slash we place or pass the parameter based on that parameter we
load the url and controller. i.e $routeprovider related with the ng-view in the index page, i.e it loads the data inside the ng-view.
$scope.servicesName = $routeParams.serviceName || constants.allCaches;
as per the above statemet $routeParams is used to get the parameter from the url. in the above example serviceName is the parameter name given the app.js i.e insidethe $routeprovider
load the url and controller. i.e $routeprovider related with the ng-view in the index page, i.e it loads the data inside the ng-view.
$scope.servicesName = $routeParams.serviceName || constants.allCaches;
as per the above statemet $routeParams is used to get the parameter from the url. in the above example serviceName is the parameter name given the app.js i.e insidethe $routeprovider
No comments:
Post a Comment