Software Archive
Read-only legacy content

Displaying Undefined in output instead of input value.

Karan_P_
Beginner
334 Views

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

 

 

 

0 Kudos
1 Reply
Diego_Calp
Valued Contributor I
334 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

 

 

0 Kudos
Reply