Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

How to change a view if state is equal to

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles