section creating a new post, there's a new.js.coffee code ending with
route.transitionToRoute('post', model)
This causes a Uncaught TypeError: Object [object Object] has no method 'transitionToRoute' error messsage.
After some googling I found out that transitionToRoute is available within a controller, but since we're coding inside the router the proper call is transitionTo. And indeed changing the above line to
section
creating a new post
, there's a new.js.coffee code ending withThis causes a
Uncaught TypeError: Object [object Object] has no method 'transitionToRoute'
error messsage.After some googling I found out that
transitionToRoute
is available within a controller, but since we're coding inside the router the proper call istransitionTo
. And indeed changing the above line tomakes it work as intended.