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

How to fetch associated model data from back-end only when required

$
0
0

@sundar wrote:

store.findRecord('school', school_id, {
          include: [
            'students',
             'students.records'
          ].join(',')

Using the above code fetching school, students, students’ records data in inital load. In the initial load, I don’t need students.records (only listing students initially)

Need student records only when clicking some button (Student Performance) Is there any way to fetch associated records separately and link with the existing model

I have sperate api endpoint for fetch students’ records

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles