How To Do Form Submit The PHP Way With Angularjs?
I found out that AngularJS sort of blocked the original form's way of submit and here is another one. Myself, found its troublesome because I need to work with many legacy submit f
Solution 1:
Ah HA! Here is an easy work around!
so, make sure include those form "input fields" that using angularjs in a ng-app that is NOT applied to the <form>
level of the DOM! very important! So now, ng-app can be used WITHIN the form in a "normal PHP way" :D
Can't say its working for everyone, but it works for this senario!
Cheers!
For example
<body>
<form>
<div ng-app="ngComponent">
<!-- Do your Angular stuff here -->
</div>
<div> <!-- Do non angular stuff here --> </div>
</form>
</body>
</html>
Post a Comment for "How To Do Form Submit The PHP Way With Angularjs?"