I came across this earlier thread while searching for help on this issue, but there are no responses so I'm at a loss.
I am trying to submit a form and receive a php variable in return. I have no problems running the test code on its own, but when put into an angular app with routing enabled, I get no result. Clicking submit while on the routed page leads to nothing happening. Is there anything I can do to fix this?
Here is my code:
HTML + PHP
<form method="post">
<input type="submit" value="Submit" name="submit">
</form>
<?php if (isset($_POST['submit'])) {
echo "IF GOOD :)";
} else {
echo "ELSE BAD :(";
}?>
HTML
<div ng-app="app">
<div ng-view></div>
</div>
JS
var app = angular.module('app', ['ngRoute']);
app.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'pages/begin.html',
controller: 'mainController',
activePage: 'begin'
});
});