Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ternary statements in ember/order-in-components #25

Closed
craigbilner opened this issue Feb 10, 2017 · 4 comments
Closed

Ternary statements in ember/order-in-components #25

craigbilner opened this issue Feb 10, 2017 · 4 comments

Comments

@craigbilner
Copy link

Should ternary statements be classified as default properties? Currently they're considered as an unknown property.

@michalsnik
Copy link
Member

That's a good question @craigbilner. Let me come back to you after short discussion with my team mates.

Btw. what is your opinion?

@craigbilner
Copy link
Author

@michalsnik, I think they should:

foo: Ember.Testing ? 1 : 2

is a default value of either 1 or 2 to me

@michalsnik
Copy link
Member

Okay, we had a brief talk and everyone has the same thoughts @craigbilner :) This should be treated as default property indeed 👍

@michalsnik
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants