test(viewState.html): update to use  $ionicNavBarDelegate

Closes #898