0

I would like to navigate/redirect from one view to another. In this case I wrote following code.

var My_router = new my_router();      
Backbone.history.start({ pushState: true });    
My_router.navigate('contacts',true);

This is not working. What is the wrong here?? But below one is working.

Backbone.history.navigate('/contacts', true);

Which is the correct way of navigation/redirect ??

1 Answer 1

0

Try replacing true with

{trigger: true}

or calling navigate from my_router class, not object.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.