I\'m using UI-router in my app and I\'d like to so a simple \"scrollTo\" to an anchor when the URL/state changes. I don\'t want to load the next step from a template, or load a
Using
You can do something like this:
$stateProvider.state("step1", { template: 'template.html', controller: ..., onEnter: function(){ $location.hash('step1'); $anchorScroll(); } }); ...