I got this working in Ember with the simple action approach from kroovy's answer.
Since Ember has changed its API I had to alter kroovys approach at little bit.
Two things have changed:
Here is how I got it working in Ember Version 1.7.0
Ember Handlebars-Template new.hbs
{{!-- Navigation --}}
- Part 1
- Part 2
{{!-- content --}}
...
...
Ember App.Controller NewController.js
App.NewController = Ember.ArrayController.extend({
actions: {
goToLink: function(item, anchor) {
console.log('NewController > goToLink');
var $elem = $(anchor);
var $scrollTo = $('body').scrollTop($elem.offset().top);
this.transitionToRoute(item.route).then( $scrollTo);
}
}
});