use contoller as in angularjs

The syntax when using routeprovider is: Some benefit are described here The name vm stands for View-model in mvvm