Note that there are some explanatory texts on larger screens.

plurals
  1. POEmber Data Access App initialization
    primarykey
    data
    text
    <p>at the moment im really frustrated. I ll try to get table filled with some data of my database. Therefore i have a controller and a View.</p> <pre><code>App.TableController.extend({ content: [], contentBinding:'App.incidient.content' }) App.TableView = Ember.CollectionView.extend({ tagName: 'tbody', itemViewClass: Ember.View.extend({ templateName: 'table' }) </code></pre> <p>My html code looks like this:</p> <pre><code>&lt;div class="row-fluid"&gt; &lt;table class="table table-striped"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt; Title &lt;/th&gt; &lt;th&gt; Customer &lt;/th&gt; &lt;th&gt; Machine &lt;/th&gt; &lt;th&gt; Priortity &lt;/th&gt; &lt;th&gt; Status &lt;/th&gt; &lt;/tr&gt; &lt;thead&gt; {{view App.TableView}} &lt;/table&gt; &lt;/div&gt; &lt;/script&gt; &lt;script type="text/x-handlebars" data-template-name="table"&gt; {{#each item in content}} &lt;td&gt; {{view item.incidient.title}} &lt;/td&gt; &lt;td&gt; {{view item.incidient.customer}} &lt;/td&gt; &lt;td&gt; {{view item.incidient.machine}} &lt;/td&gt; &lt;td&gt; {{view item.incidient.priority}} &lt;/td&gt; &lt;td&gt; {{view item.incidient.status}} &lt;/td&gt; {{/each}} &lt;/script&gt; </code></pre> <p>Im not frustrated because of my the code that is not working. It is more about the fact that:</p> <ol> <li>i dont find any good guide or post where i can see how to debug my Application. The Debugging tool from Chrome doesnt help at all, because i can't figure out how to get access to the content of my TableController or better where i can find it.</li> <li>i dont understand where the App is initializing all of my Controllers and how i can access them. With the old router: it was like 'App.router.myController' but this is not working anymore.</li> <li>i dont know how to access datas from a different controller. I tried to bind the Table.Controller.content to the 'App.incidient.content' and Ember didnt even throw an exception or something </li> </ol> <p>I hope you can help. I dont think that these question are really difficult to answer but for a noobie like me they are quite fundamental.</p> <p>Greeting and thank you </p> <p>Alex</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload