... <script src="controllers.js"></script> </head> <body> <div ng-controller='HelloController'> <input ng-model='name'> ... // controllers.js function HelloController($scope) { $scope.name = 'World'; }