Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Forms 爆米花不';I don’我不能在一个模式中工作 我的模态: 新任务 取消 创建任务_Forms_Ionic Framework_Modal Dialog_Popover_Ng Submit - Fatal编程技术网

Forms 爆米花不';I don’我不能在一个模式中工作 我的模态: 新任务 取消 创建任务

Forms 爆米花不';I don’我不能在一个模式中工作 我的模态: 新任务 取消 创建任务,forms,ionic-framework,modal-dialog,popover,ng-submit,Forms,Ionic Framework,Modal Dialog,Popover,Ng Submit,这是我的模式,工作正常,但模式内的“图标信息”不起作用。。。我在控制器和函数中放了$ionicPopover my modal: <div class="modal"> <!-- Modal header bar --> <ion-header-bar class="bar-secondary "> <h1 class="title ">New Task</h1> <button class="butto

这是我的模式,工作正常,但模式内的“图标信息”不起作用。。。我在控制器和函数中放了$ionicPopover

my modal:
<div class="modal">

  <!-- Modal header bar -->
  <ion-header-bar class="bar-secondary ">
    <h1 class="title ">New Task</h1>
    <button class="button button-clear button-positive " ng-click="closeNewTask() ">Cancel</button>
  </ion-header-bar>

  <!-- Modal content area -->
  <ion-content>

    <form ng-submit="">
      <div class="list ">
        <div class="item">
          <label class="item item-input ">
            <input type="text " placeholder="What do you need to do? ">


            <button type="button" class="button button-icon" ng-click="openPopover($event)">
             <i class="icon ion-information-circled red font-size-25"></i> 
            </button>
            </label>
        </div>

      </div>

      <div class="padding ">
        <button  type="submit" class="button button-block button-positive ">Create Task</button>
      </div>
    </form>

  </ion-content>

</div>
var-template='My Popover Title Hello!';
$scope.popover=$ionicPopover.fromTemplate(模板{
范围:$scope
});
$scope.openPopover=函数($event){
$scope.popover.show($event);
};
任何东西在模式外都很好,但在模式内却不行

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>';

  $scope.popover = $ionicPopover.fromTemplate(template, {
    scope: $scope
  });

  $scope.openPopover = function($event) {
    $scope.popover.show($event);
  };
换成

$scope.openPopover = function($event) {
    $scope.popover.show($event);
  };
换成

$scope.openPopover = function($event) {
    $scope.popover.show($event);
  };