This has bitten me twice in the last 3 days so I’m doing a quick post to remind myself. With AngularJS models, you typically have two way bindings between UI elements and your controller’s properties. Directly from the docs (Plunker)
<!doctype html>
<html ng-app>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js"></script>
<script src="script.js"></script>