$scope values inside the else block is not updating the view , only the
values inside the if block updating the view.
google.maps.event.addListener(marker, 'click', (function(marker, scope) {
return function() {
if($rootScope.showMobile){
$scope.cityDetail();
$scope.frstCenter = marker.information;
$scope.myvale2="I M IF";
}
else{
$scope.myvale="HIIIIIIII";
$scope.frstCenter = "";
alert("alerrtttttt");
$rootScope.showDetails = false;
$scope.secondCenter = marker.information;
$rootScope.showwithOutMob= true;
}
};
})(marker, $scope));
$scope.myvale2="I M IF"; this is values getting in the view , the
values inside the else block not updating the view
$scope.myvale="HIIIIIIII", i mean those are not available in view if do
like this <h1> {{myvale }} </h1> not getting the myvalue in view , only
the <h1> {{ myvale2}} </h1> is displaying . please help me.
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.