ng-state pre-ready