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