Add item json in ANGULAR with pop-up

后端 未结 1 688
逝去的感伤
逝去的感伤 2021-01-19 18:30

I\'m doing a web app.

I have a dynamic table. First, you choose a PRODUCT and then the LOT. The list of item in t

1条回答
  •  失恋的感觉
    2021-01-19 19:04

    angular.module('app', []).controller('ExampleController', ['$scope',
            function($scope) {
              $scope.infos = [
                {name: "i will go to modal 1"},
                {name: "i will go to modal 2"}
              ];
    
              $scope.goToModal = function(info) {
                $scope.newDataInModal = info;
              }
            }
          ]);
    
    
    
    
    
      
    {{info.name}}

    0 讨论(0)
提交回复
热议问题