6
私は、コードを次ていますので、私はPARAMとしてテンプレートのURLを渡すことができないんだけどIonic:テンプレートからのpopover> param URLを動的に渡すには?
<button ng-click="openPopover($event)"
class="button button-icon icon ion-plus-circled"></button>
を:使用してビューから呼び出され
$ionicPopover.fromTemplateUrl('templates/popover_available_sounds.html', {
scope: $scope,
}).then(function(popover) {
$scope.popover = popover;
});
// Display Popover
$scope.openPopover = function($event) {
$scope.popover.show($event);
};
$scope.closePopover = function() {
$scope.popover.hide();
};
を。
どうすればいいですか?
ありがとうございました。
あなたは構文「としてコントローラ」を使用してスコープを渡すの波及効果を把握するためにあらゆる努力をしたことがありますか? – iJames