테이블이 materials
이고 테이블을 클릭하면 해당 행과 관련된 모든 데이터가 포함 된 양식이 표시됩니다. 그렇게하기위한 최선의 방법은 무엇입니까?AngularJS - 테이블 행의 양식 표시
당신은
index.html을 먼저
app.controller("materialController", ["$scope", "$http", function($scope, $http){
$http.get('material').success(function(data){
$scope.materials = data;
});
this.openForm = function(){
// Do something
};
}]);
왜 내가 -1을 가지고 있습니까 ?? –