Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(demo): initial load of fragment URLs
Browse files Browse the repository at this point in the history
Closes #2762
  • Loading branch information
KyleMit authored and chrisirhc committed Oct 27, 2014
1 parent 3232b4e commit eab6daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/demo/assets/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ angular.module('ui.bootstrap.demo', ['ui.bootstrap', 'plunker', 'ngTouch'], func
//Allows us to navigate to the correct element on initialization
if ($location.path() !== '' && $location.path() !== '/') {
smoothScroll(document.getElementById($location.path().substring(1)), 500, function(el) {
location.replace(el.id);
location.replace('#' + el.id);
});
}
}]);
Expand Down

0 comments on commit eab6daf

Please sign in to comment.