lundi 3 octobre 2016

Ember Component Configure Model

I may be approaching this incorrectly but I want to pass an array object in a component and build a map off of the data. For example if I had a book with a set of chapters and lines. The data coming in is defined as an object in the following way:

{
book: blah,
chapter: 1,
verse: 3
}

I want to take that array and display it this way:

Book

chapter

line1

line2

line3

Like I said maybe I'm approaching this wrong where the passed in object shouldn't be configured by the component before it's rendered but I have issues modifying the model within a promise to be rendered by the front end.

Is what I'm trying to do possible?




Aucun commentaire:

Enregistrer un commentaire