JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://cloud.github.com/downloads/emberjs/ember.js/ember-0.9.7.1.min.js"></script>
<script type="text/x-handlebars">
{{#view App.ParentView}}
{{view childView viewName="childViewInstance"}}
<input type="submit">
{{/view}}
</script>
JavaScript
App = Ember.Application.create({});
App.ParentView = Ember.View.extend({
tagName: 'form',
childView: Ember.TextField.extend({}),
submit: function() {
// I'd like to get at the childView *instance*, but this gives me the *class*
console.log(this.get('childViewInstance'));
// and hence this is undefined: :-(
console.log(this.getPath('childViewInstance.value'));
return false;
}
});