Example $watch() Method

Using a function as the first argument in the watcher to watch for changes in the sum of value A and value B.

Register a new country for Stuart to live in:

Value A: 2

Value B: 4