Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Box is shown for a sec even though show_box = false?

$
0
0

@Texton wrote:

Hi All,

I have a view with two hidden message boxes, and a controller which defines two variables and sets them to false, representing the visibility of the boxes. The problem is that when I open this view from the menu, both boxes are visible for around 1 second, before disappering?

Controller:

app.controller('SettingsUpdateController', function($scope, $ionicPopup, $timeout, $http) {

$scope.show_message_box   = false;
$scope.show_error_message = false;

... Some other stuff..
}

View:

 <ion-view view-title="Opdatering" style="color:black">
 <ion-content ">

	<div class="green-message-box" ng-show="show_message_box" ng-click="show_message_box = false">
	     {{message}}
	</div>

	<div class="red-message-box" ng-show="show_error_message" ng-click="show_error_message = false">
	    {{error_message}}
	</div>

   ... Some other stuff....

 </ion-content>
 </ion-view>

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>