sylvanco Posted January 12, 2017 Share Posted January 12, 2017 When running in a game state, executed from an Angular controller and canvas, is it possible to end the game by routing to another angular context. I tried using $location.path("/angular-route") but $location is not defined in the game state. I've got the usual booter, preloader, and game states set up and the problem occurs in the game state. Thanks Link to comment Share on other sites More sharing options...
sylvanco Posted January 13, 2017 Author Share Posted January 13, 2017 Got this working. Again, the oft referenced article on this topic held the key. http://www.ng-newsletter.com/posts/building-games-with-angular.html Search in the article for 'scope.$emit' Link to comment Share on other sites More sharing options...
Recommended Posts