UNPKG

ionic-cordova-gulp-seed

Version:

Ionic & Cordova & Gulp seed with organized code, tests, bower support and some other stuff. Originated from ionic-angular-cordova-seed.

34 lines (26 loc) 792 B
--- name: popover component: $ionicPopover --- angular.module('popover', ['ionic']) .controller('HeaderCtrl', function($scope, $ionicPopover) { $scope.openPopover = function($event) { $scope.popover.show($event); }; $ionicPopover.fromTemplateUrl('popover.html', function(popover) { $scope.popover = popover; }); $scope.openPopover2 = function($event) { $scope.popover2.show($event); }; $ionicPopover.fromTemplateUrl('popover2.html', function(popover) { $scope.popover2 = popover; }); }) .controller('PlatformCtrl', function($scope, $ionicPopover) { $scope.setPlatform = function(p) { document.body.classList.remove('platform-ios'); document.body.classList.remove('platform-android'); document.body.classList.add('platform-' + p); }; });