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

Who should Request Data? component vs route

$
0
0

@AbdullahD wrote:

Hi,

I was arguing with my college about the best way to handle data. In route (Ember tutorial approach) or in component

(The pros of component approach is cons of route approach, vice versa)

Component handling data approach:

Pros:

  • Component high portability
  • More isolation and focus on the task
  • Thin route

Cons:

  • Fat components
  • Number of Components may increase

Posts: 7

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 4839

Trending Articles