how to call router from a view?

30 views
Skip to first unread message

John Stile

unread,
Aug 22, 2016, 8:31:23 PM8/22/16
to backb...@googlegroups.com
My code: https://github.com/johnstile/jobinterface

First, in js/views/schedule/ScheduleView.js
method: start_test
line: 214
On success I would like to send the user to the #jobs page
but I don't think my router is available from inside this view.
should I make app_router a $.app_router?
How can I do this?

Second, in js/router.js, am I initializing my views and models
correctly?
$.jobsCollection is reference in js/views/schedule/ScheduleView.js and
js/views/jobs/JobsView.js, but i'm not sure if there is a better way.



Reply all
Reply to author
Forward
0 new messages