저는 각도가 아주 새롭습니다.
i는 사용자 공유 이야기를 모달 창을 생성하고 그 후 몸을 보여 :이 데이터를 저장할AngularJS와 PHP를 사용하여 데이터를 폼에서 데이터베이스로 저장
<button class="btn btn-primary new-story" ng-click="showPopup()">New Story</button>
<div class="wroteStory img-rounded" ng-repeat="story in sentCompose">
<h1 class="s-label"><i><label for="subject">Subject :</label></i></h1>
<h5>{{story.subject}}</h5>
<h1 class="s-label"><i><label for="body">Full Story :</label></i></h1>
<h6>{{story.body}}</h6>
<button class="btn btn-danger" ng-click="remove($index)"> Delete </button>
<hr/>
</div>
JS
HTML
app.controller('aboutController', function($scope,ngProgress) {
$scope.popupVisible = false;
$scope.showPopup = function(){
$scope.popupVisible = true;
$scope.composeStory = {};
}
$scope.closePopup = function(){
$scope.popupVisible = false;
}
$scope.composeStory = {};
$scope.sentCompose = [];
$scope.sendStory = function() {
$scope.sentCompose.push($scope.composeStory);
$scope.popupVisible = false;
$http.post("insert.php", data).success(function(data, status, headers, config){
});
};
을 데이터베이스에 양식? Thx를 미리
. 그냥 구글 PHP와 데이터베이스와 당신은 튜토리얼을 많이 얻을거야. –
당신이 할 수있는 경우에 도와주세요, 나는 이미 그것을 만들었고 그것을 만들 수 없습니다 –
당신이 인터넷에 게시 된 튜토리얼을 따라갈 수 없다면, 여기에 게시 된 튜토리얼을 어떻게 따라갈 것입니까? –