docs(rootScope): add example of using a listener function for $watch

Closes #4451