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

Capturing pre-defined inputs on ng-submit

I'm creating a form in Angular (1.x) and using ng-model and JSON to pre-populate checked radios and checkboxes. For some reason the pre-populated values don't show in the form scope until I manually check on the radio or checkbox element again. How…
Christian Hill
  • 378
  • 1
  • 3
  • 17
0
votes
0 answers

Part of the text missing when ng-submit

In my current project, I have an input which is a kendo-auto-complete element. I have a category data source and when I type the categories will be visible from where I can select. Also I can type a new category name in the text box and enter, it'll…
Mujahid
  • 1,227
  • 5
  • 32
  • 62
0
votes
2 answers

Can we use angular js validation in symfony2 forms?

I am working on a registration form in symfony2 with angular js. My doubt is can we do angular js validations in a symfony2 form? because i cannot validate the form and also i dont know how to post form values to symfony controller.. please help.. I…
reb
  • 47
  • 1
  • 8
0
votes
0 answers

Resetting the model values

I have an ng-model="name" in my html page. It is connected to the main controller. The model is used to submit the name in a form using ng-submit= formfilled(name). But after the form is submitted, I want the name input field to be blank again. How…
user6004404
0
votes
1 answer

HTML AngularJs CSS Form submit

I'm having a problem when I submit the form. So.. I fill all data on the formulary then I click save... The data is correctly saved, but after the submit, the fields are cleaned and then the inputs receive the css because the form is already…
0
votes
1 answer

ng-submit on dropdown and textarea

Hi I have follow code:
webta.st.ic
  • 4,781
  • 6
  • 48
  • 98
0
votes
3 answers

Unable to invoke controller constructor and submit function

I have the following code and I an unable to find out why my controller is not getting called? - index.html -
Smitha
  • 6,110
  • 24
  • 90
  • 161
0
votes
1 answer

values not saving from ng submit for textarea

I am trying simulate a review system. How does ng submit pass values over to the controller? In my controller I have $scope.reviews = function() { $scope.rating = 0; $scope.max = 5; }; $scope.myTextArea = ''; $scope.saveReview =…
vincent l
  • 3
  • 1
0
votes
1 answer

Angular ng-submit does not user latest scope

I'm new to angular, and I've been hitting my head on this one for a while. I have a form to edit users. When the page loads, I do an AJAX call to get the data from the selected user and add the values to the scope. At this point, I see the values in…
justinledouxweb
  • 1,337
  • 3
  • 13
  • 26
0
votes
1 answer

how to update form hidden data before submssion in AngularJS?

I have my model variables already bound to some hidden input fields in a form. When the user hits the submit button, I try to update these fields by updating the corresponding bound model variables but they do not change (I noticed that when…
Abdo Adel
  • 1,177
  • 2
  • 17
  • 30
0
votes
1 answer

Can not activate Enter key using Angular.js

I have one issue regarding activating enter key using Angular.js.I am explaining my code below.
user5443928
0
votes
4 answers

ngSubmit is not triggering function in controller

I am relatively very new to AngularJS and javascript Please be merciful while answering. I am trying to create one sample application where I want to nest controllers. MainController which will always be there acting as parent container which will…
0
votes
1 answer

AngularJS form submission

I've got a form to collect signup details from a user, defined as such:
0
votes
2 answers

AngularJS - function never called with ng-submit

I've created an angular-promise which calls a http method (corresponding to a rest service),which is supposed to be called when a form is submitted, using ng-submit. It never happens, and there is no error, it seems like the function is never…
user4865748
0
votes
1 answer

ng-submit not firing with angular-touch / touch events

I have a weird issue where touch events are not firing ng-submit OR ng-click (in chrome device dev tools). Chrome dev tools simulates touchstart/touchend events, so I'm not sure why this wouldn't be working. It works fine on desktop. Given the…