Using Hidden Input in a Form in AngularJS Image Using Hidden Input in a Form in AngularJS

This ended up being an interesting little problem for me during one of my programming sessions. Below you'll find a couple of different methods that you can use to pass hidden data to any form submission using AngularJS.

Method 1

<input type="text" name="someData" ng-model="data" style="display: none;" />
Elliot Forbes

Elliot Forbes
Twitter: @Elliot_f

Hey, I'm Elliot and I've been working on TutorialEdge for the last 4 years! If you have any tips or suggestions as to how I can make it better, please let me know in the comments section!

become a patron Buy Me A Coffee