Note that there are some explanatory texts on larger screens.

plurals
  1. POEmber.js: Template type not defined?
    primarykey
    data
    text
    <p>The user is being correctly routed by the main router to the App.IndexRoute below:</p> <pre><code>App.IndexRoute = Ember.Route.extend({ model: function() { return App.Contact.find(); }, init: function() {console.log('were in the indexroute! ive been created.')}, controller: 'index', setupController: function(controller) { controller.set('content', App.Contact.find()); console.log('the IndexController is set up, with the model equal to ' + controller.get('content') + '.'); }, renderTemplate: function() { this._super(); this.render('contacts', { outlet: 'sidebar', into:'index', controller: 'contacts' }); this.render('map', { into: 'index', outlet: 'map', //cannot connect outlet yet, acc. GitHub ember-data gist #1838 controller: 'map' }); } }); </code></pre> <p>But the index page refuses to load any of the dynamic, Handlebars-defined content. Removing <code>this._super()</code> from the <code>renderTemplate</code> function yields a Type Error, with 'connectOutlet' not defined. I'm getting the comments in the Handlebars templates on the index page (hidden, of course), so I know they're loading correctly.</p> <p>Can anyone spot any issues with the route definition? If not, I'll have to delve further. Any advice would be much appreciated.</p> <p>Notes: Ember, ruby, rails and so on all up-to-date as of writing. Chrome console debugger gives:</p> <pre><code>DEBUG: Ember.VERSION : 1.0.0-rc.1 ember.js:348 DEBUG: Handlebars.VERSION : 1.0.0-rc.3 ember.js:348 DEBUG: jQuery.VERSION : 1.9.1 </code></pre>
    singulars
    1. This table or related slice is empty.
    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