Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
<!DOCTYPE html>
<meta charset="UTF-8">
<title>Basic Scope Example</title>
<script src = ""></script>
<div ng-app="demoApp" ng-controller="demoCtrl">
<input ng-model="word">
<h1>Hello, {{word}}!</h1>
var app = angular.module('demoApp', []);
app.controller('demoCtrl', function($scope) {
$scope.word = "word";
<p>If we change the word in the input field, the change will affect the model and the word property in the controller.</p>