Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Modal not showing on device or emulator (but showing/hiding in browser)

$
0
0

it looks like i am having a similar issue....i can only get Modals to work on my device(android 4.1.1) It only works if i run with --livereload mode. I thought it might be some conflict so I have made a test app that only has a single button, header, page and 1 modal no css. I dont get any errors. Dont know what i might be doing wrong. is 4.1.1 not supported? i used some of the tab-template to make things faster to test

<ion-view view-title="Dashboard">
<ion-content class="has-subheader">
<button class="button button-positive" ng-click="openModal()">
</button>
</ion-content>
</ion-view>

app.js
.config(function ($stateProvider, $urlRouterProvider) {
$stateProvider
.state('dash', {
url: '/dash',
templateUrl: 'templates/tab-dash.html',
controller: 'ListController'
});
$urlRouterProvider.otherwise('/dash');
});

controller.js
.controller('ListController1', function ($scope, $state, $ionicModal ) {

$ionicModal.fromTemplateUrl('../templates/myPage.html', {
scope: $scope,
animation: 'slide-in-up'
}).then(function (modal) {
$scope.modal = modal;
})

$scope.openModal = function () {
$scope.modal.show();
};

thanks for the help....sorry if dumb question


Viewing all articles
Browse latest Browse all 228595

Trending Articles



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