Hi, I’m new to EmberJS. I want to display a button of 4 different states which are based on the conditions of some variables’ values.
Let’s say Person Another is a contact in my phone book, I imported him into my app.
Person Another is not a member of the app so I need to invite him. The button would be Invite.
Person Another is a member but not my contact in the app, and I could add him directly. The button would be Add.
After I send request of Condition A or Condition B, there would be a message like Waiting for response.
After we’ve been contacts, there would be a message like Contact.
I need to check Person Another if he is a member of the app and if I’ve sent out a request before.
Should I define a view or component? Or is there a better way?