Angularjs联系方式+;PHP
我似乎无法使用Angularjs中的联系人表单。按下按钮提交时,“Cnt\U meCntl”控制器中的提交功能未启动 HTMLAngularjs联系方式+;PHP,php,angularjs,contact-form,Php,Angularjs,Contact Form,我似乎无法使用Angularjs中的联系人表单。按下按钮提交时,“Cnt\U meCntl”控制器中的提交功能未启动 HTML 打字错误:nh submit应该是ng submit@Shomz谢谢。现在,我有另一个问题。它找不到另一个文件夹中的PHP。我尝试了/folder/和…/,但什么都没有。 <article> <form id="contact-form" nh-submit='submit()' method="post"> <div>
打字错误:
nh submit
应该是ng submit
@Shomz谢谢。现在,我有另一个问题。它找不到另一个文件夹中的PHP。我尝试了/folder/和…/,但什么都没有。
<article>
<form id="contact-form" nh-submit='submit()' method="post">
<div>
<label>
<span>Name: (required)</span>
<input placeholder="Please enter your name" type="text" ng-model="formData.name" required autofocus>
</label>
</div>
<div>
<label>
<span>Email: (required)</span>
<input placeholder="Please enter your email address" type="email" type="text" ng-model="formData.email" required>
</label>
</div>
<div>
<label>
<span>Message: (required)</span>
<textarea placeholder="Include all the details you can" ng-model="formData.message" required></textarea>
</label>
</div>
<div>
<input name="submit" type="submit" value="Submit"/>
</div>
</form>
</article>
....when('/contact', {
controller: 'Cnt_meCntl',
templateUrl: '/content/Views/Contact.html'
}).when('/resume', {
controller: 'ResmeCntl',
templateUrl: '/content/Views/Resume.html'
})...
ospnWeb.controller('Cnt_meCntl', function($scope, $http){
...
$scope.formData;
$scope.submit = function () {
console.log('Im in the controller');
console.log($scope.formData);
}
});