AngularJS Input File
by Shaun Luttin
HTML
<div ng-app>
<input ng-model="type" type="radio" value="email" />Email
<input ng-model="type" type="radio" value="password" />Password
<input ng-model="type" type="radio" value="file" />File<br/>
<label>Type:</label> {{ type }}<br/>
<input type="{{ type }}">
</div>
CSS
</style> <!-- Ugly Hack to make remote files preload in jsFiddle --> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js"></script> <style>