#Using Hidden Input in a Form in AngularJS

Elliot Forbes · Apr 15, 2017 · 1 min read

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;" />

Share this article