Skip to content

Instantly share code, notes, and snippets.

@Serabe
Forked from ebryn/application.controller.js
Created May 2, 2016 01:07
Show Gist options
  • Select an option

  • Save Serabe/2d017fc01ac82cf72fe31237abad03f5 to your computer and use it in GitHub Desktop.

Select an option

Save Serabe/2d017fc01ac82cf72fe31237abad03f5 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": "canary",
"ember-template-compiler": "canary"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment