In my main page there is a div id="page_content"
, i load a jsp page in that div. and there is a refresh button ,through which the page is reloaded in that div. i have written some angularjs like {{1+2}}
on that page. first it run properly displaying result 3. but when refresh button is clicked calling $('#page_content').load(page_url);
page is refreshed but my angularjs func gone and it displayed {{1+2}}
. how to overcome through this?
i tried route functionality but it dosen't work
angular.module('div', [])
.controller('divcontroller', ['$scope', function ($scope,$location)
{
$scope.ConfirmRefresh = function(){
$('#page_content').load(page_url);
}
}]);
angular.element(function()
{
angular.bootstrap(document, ['div']);
});
after refresh button is clicked page should be loaded with angular js .