Skip to content

$http.jsonp(...).success is not a function angularjs. Any idea how to integrate with API by overcoming this error?? #6

@Sahanaa

Description

@Sahanaa

This typescript error occurs while integrating with Yahoo API. I think this doesn't work with angularjs ^1.4.0.

Check the code below -

     `$http.jsonp(url + '&callback=JSON_CALLBACK')
       .success(function (data) {
      if (data.query.count) {
        var quotes = data.query.count > 1 ? data.query.results.quote : [data.query.results.quote];
        update(quotes);
        }
    })	
    .error(function (data) {
    	console.log("error");
      console.log(data);
    });`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions