Giter Club home page Giter Club logo

stock-dog's Issues

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

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);
    });`

Missing tags?

Might need a $ git push --tags from your src.

ali@jessie:~/git/stock-dog$ git pull origin master
From github.com:diegonetto/stock-dog
 * branch            master     -> FETCH_HEAD
Already up-to-date.
ali@jessie:~/git/stock-dog$ git pull --tags
Already up-to-date.
ali@jessie:~/git/stock-dog$ git tag
// <-- nothing here
ali@jessie:~/git/stock-dog$ git remote -v
origin  [email protected]:diegonetto/stock-dog.git (fetch)
origin  [email protected]:diegonetto/stock-dog.git (push)

HTH

Animation stops after a few updates on Chapter 1 Step 10

Likely this is because I'm using a newer version of Angular, but I ran into an issue where the animations stopped after each element had been updated once up and once down. Here is the code in the book:

$animate.addClass($element, 'change-' + direction, function() {
  $animate.removeClass($element, 'change-' + direction);
});

I think the code is attempting to remove the class before the animation is complete and causing a problem.To solve this, I modified the above code slightly to make sure that the directive only continues once the animation promise from the addClass function has been returned:

$animate.addClass($element, 'change-' + direction).then( function() {
  $animate.removeClass($element, 'change-' + direction);
});

Reference

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.