I am really just learning Angular and I am attempting to create an app that limits content access based on authentication. I have the authentication part working (also using the
@Chandermani 's answer is almost close, in fact, you can just add some random params to force refresh, just like this:
app.controller('appController', function($scope){
var getMenu = function(){
var random = Math.random();
return "partials/nav.html?r=" + random;
}
$scope.menuUrl = getMenu();
$scope.$on('userLoggedIn', function(){
$scope.menuUrl = getMenu();
})
})