Skip to content

Instantly share code, notes, and snippets.

@endash
Created October 9, 2014 21:24
Show Gist options
  • Save endash/c83ff4851cdce76388cb to your computer and use it in GitHub Desktop.
Save endash/c83ff4851cdce76388cb to your computer and use it in GitHub Desktop.
var BlankComponent = Ember.Component.extend();
container.register('component:link-to', BlankComponent);
var view = Ember.View.createWithMixins({tempalte: Ember.Handlebars.compile('{{#link-li viewName="testComponent"}}{{#link-to viewName="linkToComponent"}}{{/link-to}}{/link-li}}')});
view.get('testComponent') // link-li
view.get('testComponent.linkToComponent') // link-to
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment