Whenever I try to call this controller, it gives me an error.
hiren.controller('hirenz' , function($scope , $http , $location , $routeParams){
$http.post((rootURL + "music") , {'alpha' : $routeParams.alpha , 'name' : $routeParams.name ,
'album' : $routeParams.albumname }).success(function(data){
var parsedJson = JSON.parse(data) ;
console.log(parsedJson.name);
});
});
Here is the data returned from the server:
{
"name": [
"Adhar - Adhar ",
"Adhar - Adhare Opshori ",
"Adhar - Aj Neshay "
],
"url": [
"http://music-com-bd.com/Music/A/Adhar/Adhare Opshori/Adhar - Adhar (music.com.bd).mp3",
"http://music-com-bd.com/Music/A/Adhar/Adhare Opshori/Adhar - Adhar (music.com.bd).mp3",
"http://music-com-bd.com/Music/A/Adhar/Adhare Opshori/Adhar - Adhar (music.com.bd).mp3"
]
}