Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

What is best practice for creating new records between transitions?

$
0
0

@johnnyicon wrote:

The scenario is a user clicks a button on a template which takes them to another route/template.

For clarity, let’s call the page with the button the index route/template, and let’s call the page that the user is sent to after clicking the button the edit route/template.

Before presenting the edit route/template, there should be a new record created that will be the model of the edit route/template.

Would it best practice to:

  1. implement the logic of creating a new data record and redirect in the index controller; or
  2. implement all the logic in the edit route handler?

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles