Skip to content

Instantly share code, notes, and snippets.

@ebryn
Last active May 2, 2016 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ebryn/098c793577e88f993e1d to your computer and use it in GitHub Desktop.
Save ebryn/098c793577e88f993e1d to your computer and use it in GitHub Desktop.
helper lookup issue in attributes
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
it works here: {{foo-bar}}<br>
but <a href={{foo-bar}}>look at my href</a>
<a href="{{foo-bar}}">or my href</a>
<a href="{{foo-bar}}/qux">or my href</a>
import Ember from 'ember';
export function fooBar(params/*, hash*/) {
return "http://foobar.com/";
}
export default Ember.Helper.helper(fooBar);
{
"version": "0.4.13",
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "http://builds.emberjs.com/canary/ember.debug.js",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/1.13.13/ember-data.js",
"ember-template-compiler": "http://builds.emberjs.com/canary/ember-template-compiler.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment