Route to the new data submitted by Meteor autoform using iron router?

前端 未结 3 1529
失恋的感觉
失恋的感觉 2020-12-19 04:44

I\'m using Meteor with AutoForm & Iron Router.

I have an autoform for inserting a data, and I want to redirect to the page of the data I added after a successful

3条回答
  •  余生分开走
    2020-12-19 04:53

    onSuccess: function(formType, result) {
        Router.go(
            ['adminDashboard', result, 'Edit'].join(''), 
            {_id: this.docId}
        );
    },
    

提交回复
热议问题