I've got an AngularJS app that is entirely made of pages that don't require scrolling, save for one. This page works fine when it is loaded directly, i.e. I type the url into the browser, or I leave a link on a page. But when it is linked to from a bootstrap modal in the application, the page doesn't show a scrollbar and I'm unable to scroll, unless I refresh the page.
I need a way to be able to link to this page from a bootstrap modal and not force users to click refresh just to be able to use the page. I have played around with $window.reload(), $route.reload(), and html5Mode(true), but nothing seems to work. I feel like some sort of reload should do the trick, but I'm not sure what event to fire on or when to call it.
Currently my app.config.js looks something like this:
angular.
module('myApp').
config(['$locationProvider', '$routeProvider',
function config($locationProvider, $routeProvider) {
$locationProvider.hashPrefix('!');
// Routes
$routeProvider.
when('/sign-in', {
template: '<sign-in></sign-in>'
}).
// ... more routes ...
otherwise('/sign-in');
}
]);
Dev tools is currently showing all of the elements under the elements tab, I just can't see them.
To be clear: I don't need the page be scrolled down upon page load. I want it to load at the top of the page, I just need the ability for a user to scroll down.