我有一个从外部网站请求到我的网站的帖子表格,如此
<form action="POST" enctype="application/x-www-form-urlencoded" action="www.mysite.example/test">
<input type="text" name="myInput" value="myValue">
<input type="submit" value="Submit"/>
</form>
然后我的控制器配置
angular.module('my-module')
.config(function (pathServiceProvider, stateServiceProvider) {
stateServiceProvider.state('my.state', {
url: "/test",
templateUrl: pathServiceProvider.generateTemplatePath("ocb-payments") + "/modules/test.html",
controller: "PayUBKUStep1Controller",
});
})
.controller('MyController',function(){
// How can I get 'myValue' from form submit at here?
})
我可以获得myValue&#39;在控制器?
答案 0 :(得分:1)