Git Product home page Git Product logo

Comments (5)

paulm67 avatar paulm67 commented on June 30, 2024

I'm a newbie with EmberJS and like you had some problems with this guide.

To solve my specific problem, which had symptoms like yours, I used the Console to figure out exactly which bit of the code was causing the "undefined is not a function" error.

If you enter "x=this.currentModel" into your Console, what value does it display?
If you enter "x=this.currentModel.save" into your Console, does the error now appear?

from guides.

Eric-Guo avatar Eric-Guo commented on June 30, 2024

Please see below screen, seem the route just have no method name transitionToRoute?
route_has_no_transitiontoroute

from guides.

paulm67 avatar paulm67 commented on June 30, 2024

route does have a method "transitionTo", though, which is what I have in my new.js.coffee script. I'm not sure what the difference is, or why the guide uses transitionToRoute in some places and transitionTo in other places.

The following throws some light on the matter, perhaps:
http://www.smashingmagazine.com/2013/11/07/an-in-depth-introduction-to-ember-js-2/#transitionTo_or_transitionToRoute

PS I like that you included screenshots - it makes it so much easier to see what people are talking about!

from guides.

radar avatar radar commented on June 30, 2024

I was seeing an error when I was writing the guide that transitionTo was deprecated, but I cannot remember what context. It appears that transitionTo is the right method, and so the guide should use that.

from guides.

radar avatar radar commented on June 30, 2024

This is now fixed in the guide.

from guides.

Related Issues (20)

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.