Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

When i submit this form submits, it calls itself, so this is a simple form validation im trying to do with some extra functions with AngularJs.

So i want to get the value which i type in the input element called "name", to my AngularJs script inside the MainController. So I tried to put ng-model inside the input element, and pass the returned value from php, but then it doesnt work. So can anyone help me to do this. Below is the Plunker for my project

http://tinyurl.com/ozq8fo7

share|improve this question
    
shouldn't the code in the index.php page be set inside a <script> tag? –  SoluableNonagon Nov 7 '14 at 18:41
    
Is it so? I dont have much idea about this bro.. Why experts are not helping in this? cant they see this thread? –  sham999 Nov 8 '14 at 14:50
    
if it's javascript generated by a your php page, then yes, it needs to be in a script tag. A reason people might not be helping is because on stackoverflow people expect you provide your code in a "<code>" block and if you provide a link then it should be a working piece of code. So in your code block you should comment what you are having issues with and ask how to solve it. –  SoluableNonagon Nov 10 '14 at 15:27
    
I have provided the plunker link for the whole code.. That is that tinyurl, i could not put the direct plunker link becase, it showed some error when submitting the thread.. THANKS... –  sham999 Nov 11 '14 at 3:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.