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 my work has helped you in any way, shape, or form then please consider supporting my work.

become a patron Buy Me A Coffee