Click here to Skip to main content
15,921,622 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am beginning my first angular.js app. I have written code to call a spanish rhyming dictionary A.P.I. In this code I log the JSON response to the console. However there is an error when I run this code. The console doesn't give me the specific error but it concerns my app.js file

Here is the website for the A.P.I-

Rhyme Searcher

Here is my app.js file:

JavaScript
var rhymeApp = angular.module('rhymeApp', ['ngResource']);

rhymeApp.controller('rhymeView', function ($scope, $resource) {

 $scope.rhymeApi=$resource("http://store.apicultur.com/api/rima/1.0.0/flor/true/0/200/tr  ue", {callBack: "JSON_CALLBACK"}, { get: {method: "JSONP"}});

 $scope.rhymeResult = $scope.rhymeApi.get();

 console.log($scope.rhymeResult);
});
Posted
Updated 25-Oct-15 16:20pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900