Questions tagged [ng-submit]

AngularJS directive in module ng

Enables binding angular expressions to onsubmit events.

Additionally it prevents the default action (which for form means sending the request to the server and reloading the current page), but only if the form does not contain action, data-action, or x-action attributes.

Link: http://docs.angularjs.org/api/ng/directive/ngSubmit

94 questions
1
vote
1 answer

Using AngularJS inside Rails framework. "ng-repeat" is working, but "ng-submit" is not

My data is being displayed from the controller. "ng-repeat" works fine when displaying the data, but "ng-submit" is not adding new data to the model using the following code: pages.js.coffee @PagesController = ($scope) -> $scope.entries = [ …
Ctpelnar1988
  • 1,235
  • 3
  • 15
  • 38
1
vote
2 answers

Angular js form submits when it shouldn't

I have an AngularJS form which looks like this:
.. fields .. more fields
When I click…
Burjua
  • 12,506
  • 27
  • 80
  • 111
1
vote
1 answer

Angularjs form with and without refresh

I would like to use an Angularjs form directive in the following way: if it's in /home redirect to /search/term and if already in /search process the submit without page refresh just changing the location. I know how to do both, but I don't know how…
Ela
  • 3,142
  • 6
  • 25
  • 40
1
vote
0 answers

angularjs form submit causing page reload and adding '?' to url

I have the following form in my angular application
1
vote
2 answers
1
vote
2 answers

AngularJS ngSubmit not calling controller function

I have a form that I'm trying to use ng-submit with, but its not calling the controller function submit() index.html ...