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
0
votes
1 answer

Save an array of objects in angular

Hi I'm trying to put together the next object $scope.passengers = { adult : [ {firstname: "name", lastname: "anothername"},{firstname: "name", lastname: "anothername"},{firstname: "name", lastname: "anothername"}], child : […
0
votes
1 answer

AngularJS: How to determine which text input field fired submit?

I would like to process the inputs of a form individually. If I press enter after typing, and the ng-submit expression is executed, how can I get passed the responsible input field to the submit callback to determine which input to process? Is it…
ideaboxer
  • 3,863
  • 8
  • 43
  • 62
0
votes
1 answer

angular form submit get action append key value pairs

My goal was to have off a form submit for a get to be performed and as part of the uri, key value pairs appended like the following: // GET /pets/42;q=11;r=22 Reading http://www.w3schools.com/tags/att_form_method.asp description of form with setting…
Michael Sampson
  • 369
  • 1
  • 6
  • 19
0
votes
1 answer

ng-submit doesn't fire the event

I'm stuck with this simple form submission. I feel that everything is right, but it doesn't work. My html :
...
Nikhil
  • 6,493
  • 10
  • 31
  • 68
0
votes
1 answer

AngularJS 1.4.1 ng-submit not firing after form reset

I know there are a few older questions with related topics, but I have not found a satisfactory answer to this, plus those answers seem to be for older versions of Angularjs. My issue is a form with angular validation and ng-submit does not fire…
izk
  • 1,189
  • 2
  • 8
  • 23
0
votes
1 answer

Submit form data in AngularJS without specifying POST Url

I am trying to reset user password by sending a mail. On clicking the email the URL is like: http://localhost:3000/reset/d58d5b16323276a14494fbd6998b0bb9 and it shows the following form extends ../layout block content .col-sm-8.col-sm-offset-2 …
maxboo
  • 118
  • 8
0
votes
1 answer

Angular validate external form before sending

I'm trying to validate a form before submitting to a external URL:
Lloople
  • 1,827
  • 1
  • 17
  • 31
0
votes
1 answer

build a form using multiple ng repeats how to proccess the data? angular js

Im building a cart. Each product has "addons" these for example size:big dressing: No salad dressing Drink: cola these "addons" are from the database. and returned from the API as objects. object looks like this: object cat_addons (addon_group) …
Reza
  • 880
  • 1
  • 10
  • 29
0
votes
1 answer

clear sorting button of ngtable is calling form submit

i am using ng-table inside a form. i have a clear sorting button on the table. …
Raas Masood
  • 1,475
  • 3
  • 23
  • 61
0
votes
3 answers

ng-submit not working for this plunk

I am new to angular js and was building my first app to display users while hitting the github API. here's the plunk I was working on : http://plnkr.co/edit/bJxijtHV4kBmJ3heMxA9?p=preview …
SJMan
  • 1,547
  • 2
  • 14
  • 37
0
votes
1 answer

Why is ng-submit not submitting and updating model

http://plnkr.co/edit/0W4ATi7loAKk94Cnj3lz?p=preview A simple Angular app, not sure why the ng-submit isn't firing the createMeetup function HTML

There are {{meetupsCount}}…

Leon Gaban
  • 36,509
  • 115
  • 332
  • 529
0
votes
1 answer

Ng-Submit does not sumbit form

I am trying to call a function on ng-submit to push to an array if I console log the function it clearly works its just on button event the ng-submit does not get called. I have been researching this issue for far to long. I created a codepen for…
Enjayy
  • 1,074
  • 8
  • 18
0
votes
1 answer

Why do both ng-model and name need to be supplied for ng-submit?

In the following code, I am adding a customer to a table based on information from the form. I found that the ng-submit will not send the form variables to addCustomer() unless the input element has both ng-model and name and they both have the same…
Edward Tanguay
  • 189,012
  • 314
  • 712
  • 1,047
0
votes
1 answer

Angular JS Process form before submit

I have a scenario as follows : I have one searchbox and the user can enter two types of queries Scenario One the Search Starts with i.e. A1234 Scenario Two the search Starts with i.e. B1234 Depending on one or two above I want to hit a different…
StevieB
  • 6,263
  • 38
  • 108
  • 193
0
votes
1 answer

ng-submit with focus out event

In angularjs i have created a form on page ... when i enter text in input and press enter then ng-submit method is called , is there any method to call method on focus out Event. Fiddle Code:: http://fiddle.jshell.net/Lyz6z/
anam
  • 3,905
  • 16
  • 45
  • 85