Hi,
I’m new with Ionic.
I use Ionic showPopup in my app, but it only show when i’m connected to internet… when i’m offline the popup doesn’t work!
Please help me whit this and sorry for my bad english.
Thank you all
Hi,
I’m new with Ionic.
I use Ionic showPopup in my app, but it only show when i’m connected to internet… when i’m offline the popup doesn’t work!
Please help me whit this and sorry for my bad english.
Thank you all
Please somebody help me
Try posting some code via a plunker, codepen or copy and paste that function so we can help you.
Hi webslinger, my function is here :
_ _scope.showPopup = function() {
_ var alertPopup = $ionicPopup.alert({
_ title: $titulo,
_ templateUrl: $link,
_ okText: 'Voltar'
_ });
_ $timeout(function() {
_ //ionic.material.ink.displayEffect();
_ ionicMaterialInk.displayEffect();
_ }, 0);
_ };
So, inside an ion-slide-box, I have a list of products, and if you click an any product, it calls a popup with the settings about that especific product…
e.g
> <ion-slide-box on-slide-changed="slideHasChanged($index)">
>
> <ion-slide>
>
>
> <!-- Menu Automatismos -->
> <div class = "box box1">
> <div class="bar bar-subheader bar-stable static text-center">
> <strong class="title">Automatismos</strong>
> </div>
> <div class="row padding-top teste">
> <div class="col col-33">
> <a id="a1" ng-click="showPopup()">
> <script>
> document.getElementById("a1").onclick = function () {
> $link = 'templates/a1.html';
> $titulo = 'Portões de Batente' ;}
> </script>
> <img src="img/a1.png">
> <br>Portões de Batente</a>
> </div>
When I test it online, works fine… but if i turn down the wi-fi and test again the popup doesn’t show