@Harun_Tuncay wrote:
Hi.I am tying to save a post object.
savePost(newPost){ newPost.save().then(()=>transitionTo('posts.index'));
I get back the error in the title." transitionTo is now defined".I have tried curly braces syntax too.
And it is not only after "save()".I can't do transition.Always this error.Please send help ^-^
Posts: 7
Participants: 2