the $observe function

http://docs.angularjs.org/guide/directive#attributes