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

TypeError: Cannot read property 'show' of undefined

$
0
0

@nvoleau wrote:

I have a probleme with $ionicmodal wich doesn't show up on my android device.

My controller is
`$ionicModal.fromTemplateUrl('/templates/entrainement.html', function(modal) {
$scope.modal = modal;
}, {
scope: $scope,
animation: 'slide-in-up'
});

$scope.showAddEntrainementModal = function() {
    $scope.entrainement = {};
    $scope.entrainement.technique ={};
    $scope.entrainement.technique.serrage=0;
    $scope.action = 'Add';
    $scope.isAdd = true;
    console.log("add")
    $scope.modal.show();
};`

When i click on showAddEntrainementModal i have this message on my android device
"TypeError: Cannot read property 'show' of undefined
at Scope.$scope.showAddEntrainementModal (file:///android_asset/www/js/controllers.js:57:21)
at $parseFunctionCall (file:///android_asset/www/lib/angular/angular.js:12404:18)
at file:///android_asset/www/lib/ionic/js/ionic.bundle.js:57606:9

Can you help me ?

Thanks

Posts: 1

Participants: 1

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>