Angular needs to be notified when the external Kinvey.Social
service returns so it can trigger a $digest cycle. This can be done with the $apply()
function of $scope
$scope.login = function() {
Login
.connect(function(response) {
$scope.$apply(function() { $scope.loggedIn = true; });
},
function(response) {
});
}
When using angular's own $http
service it handles this for you but when using something external this is how angular knows to run a dirty check cycle which should trigger the ng-show
directive you're using.