File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 3636 * ```js
3737 * angular.module('testApp', ['ionic'])
3838 * .controller('MyController', function($scope, $ionicPopover) {
39+ *
40+ * // .fromTemplate() method
41+ * var template = '<ion-popover-view><ion-header-bar> <h1 class="title">My Popover Title</h1> </ion-header-bar> <ion-content> Hello! </ion-content></ion-popover-view>';
42+ *
43+ * $scope.popover = $ionicPopover.fromTemplate(template, {
44+ * scope: $scope,
45+ * });
46+ *
47+ * // .fromTemplateUrl() method
3948 * $ionicPopover.fromTemplateUrl('my-popover.html', {
4049 * scope: $scope,
4150 * }).then(function(popover) {
4251 * $scope.popover = popover;
4352 * });
53+ *
54+ *
4455 * $scope.openPopover = function($event) {
4556 * $scope.popover.show($event);
4657 * };
You can’t perform that action at this time.
0 commit comments