私はAngularJSが初めてです。
次のフィドルでは、ユーザーが「この送信は検証をトリガーします。しかし、このボタンをページの最後に配置したかった」ボタンをクリックすると。アラート/エラーを表示できましたが、カスタム メッセージを表示したいのですが、それを行うのに苦労しています。
Header inputs:
<input type="name" ng-model="sample" required/>
<input type="name" ng-model="sampleX" required/>
<input type="submit" value="This submit triggers validation. But I wanted to put this button at the end of the page"/>
</form>
<hr/>
Some other form here. Think line items
<hr />
<a class="btn" ng-click="triggerSubmit()">Wanted this submit to trigger the validation to the form on which this button doesn't belong, e.g. trigger to header</a>
jsフィドルリンク http://jsfiddle.net/unWF3/6/
ありがとう、
カリヤン・バサ