In angularjs ng-route since my params are dynamic i'm passing it as json like as shown below
$scope.filmNames= {
'films': {
'film': [{
filmName: 'ABCD',
filmYear: '123'
}, {
filmName: 'BCD',
filmYear: '145'
}, {
filmName: 'DEF',
filmYear: '128'
}]
}
};
'.../index.html#/admin?jsonObj='+$scope.filmNames
ans it succesffully sending as like
http://localhost:8000/index.html#/admin?jsonObj=[object Object]
but at the controller receiver when i tried to get it through using $routeParams like
var jsonObj= $routeParams.jsonObj;
console.log(JSON.stringify(jsonObj));
It is been printing it as "[object Object]"
, instead of the values
can anyone please tell me solutions for this
"* that isn't successful, you don't want to send the text `[object Object]`
– Kevin B May 16 '14 at 15:41