Reputation: 414
I am having trouble with creating a basic Select input...
app/controllers/scratch.js
import Ember from 'ember';
export default Ember.ObjectController.extend({
list: ['green', 'red', 'blue']
});
app/routes/scratch.js
import Ember from 'ember';
export default Ember.Route.extend({
});
app/templates/scratch.js
{{outlet}}
{{view "select" content=list}}
Chrome Console:
Uncaught Error: Assertion Failed: Unable to find view at path 'select'
Wha....
Upvotes: 1
Views: 667
Reputation: 6366
I had same issue and used {{ view 'Ember.Select' ...}}
however I believe Ember 1.8.1 fixes an issue with resolving views so you should be able to just do {{view 'select' content=list}}
now.
Upvotes: 3