Updated example to use view model tip.

This version now uses a viewModel on the scope that is the constructor.