我有一个基本的问题,我不明白为什么它不工作NG提交不火的形式什么
<div class="footer">
<div class="row writing">
<p>{{slogan}}</p>
</div>
{{send()}} //check if the function is there
<div class="container">
<form name="userForm" ng-submit="send()" novalidate>
<div class="form-group col-md-6">
<ng-form name="userMail">
<input name="mail" type="email" ng-model="varmail" class="form-control" placeholder="Your mail" required>
<!--<p class="help-block" ng-show="userMail.mail.$invalid">Valid Email Required</p>-->
</ng-form>
</div>
<div class="form-group col-md-6">
<ng-form name="userMarket">
<input type="text" ng-model="varmarket" class="form-control" placeholder="huhu"
required>
</ng-form>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary flat-butt">{{butLabel}}</button>
</div>
</form>
</div>
</div>
所以我能看到的功能是有,但在NG-提交不发射任何东西。 请注意,这是隔离范围,并且该功能已成功传入。
谢谢。
更新:我创建了一个普拉克在这里,它不工作,要么 http://plnkr.co/edit/CULSC4ajGfid25sEaT34?p=preview
任何控制台错误? – Und3rTow
没有什么 –
你能提供一个普朗克吗?你是否在你的路由器中指定了控制器? –