Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Karan_P_
Beginner
49 Views

Displaying Undefined in output instead of input value.

Hello, I need help ASAP, I want to make a basic app which takes name input, on pressing submit it should display the name that is input on the text element. But I am getting undefined print on the text box instead of the name entered. Please help ASAP!

Screen Shot 2016-09-18 at 10.51.39 AM.png

Screen Shot 2016-09-18 at 10.53.17 AM.png

Screen Shot 2016-09-18 at 10.53.36 AM.png

 

 

 

Tags (2)
0 Kudos
1 Reply
Diego_Calp
Valued Contributor I
49 Views

Hi,

The problem is that you need to use Angular to access elements from Ionic framework, take a look at this post:

http://stackoverflow.com/questions/37730065/angular-ionic-cant-access-value-in-html-input-field

If you are not familiar with Angular and don't need to use Ionic I suggest you to change to Bootstrap framework. Your code will work on it, using DOM or jquery to set and get UI element values.

Regards,

Diego

 

 

Reply