@BobrImperator wrote:
Hello, there I've recently started learning Ember.js , and I'm writing a game "hangman".
I'm having trouble with Ember.js's templates, I have a "state" defined inside component, and I want to switch between templates if state = won , so it won't be so messy , right now all game is written in 2 files, a component and it's template.
Currently I'm attempting to refactor it.I'd like to have different view for state = won || lost || provideWord .
Tried to work it out with routes , but didn't manage to either.
Posts: 2
Participants: 2