Using Hidden Input in a Form in AngularJS

Elliot Forbes ⏰ 1 Minutes 📅 Apr 15, 2017

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