Quote from: Bruno17 at Apr 27, 2014, 12:53 AM
needs to be
corrected it in the code above.
Also, the link to my example setup should work again.
if you goto
http://www.revo222.webcmsolutions.de/75/angular-spa/ajax/content.html?root=/75/angular-spa/book/gatsby¶ms={%22bookId%22:%22gatsby%22}
you will see a correct dump of what I want. your site works. Mine.. does not.
http://za.hostwarp.com/json?root=/about¶ms={%22key%22:%22value%22,%22id%22:%22whatever%22}
when I try and replicate that it does not give me anything back...
function ContentCtrl($scope, $routeParams, $http, $location) {
$http({method: 'GET', url: '[[~4]]?root=' + $location.path() + '¶ms=' + angular.toJson($routeParams)}).
success(function(data, status, headers, config) {
if(data){
$scope.title = data.pagetitle || '';
$scope.items = data.items || [];
}
}).
error(function(data, status, headers, config) {
// called asynchronously if an error occurs
// or server returns response with an error status.
});
}
and URL [[~4]] is suppose to be a empty template page with
http://za.hostwarp.com/json
and inside that it contains
Something isn't firing correctly. How do i get my json page to give me back all those keys like your link does??? is there an addon I am missing or a step I am not getting correctly?
[ed. note: zurie last edited this post 12 years, 5 months ago.]