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

스타일 가이드 - 템플릿에서 단순한 표현식 #35

Open
Bogyie opened this issue Nov 9, 2022 · 0 comments
Open

스타일 가이드 - 템플릿에서 단순한 표현식 #35

Bogyie opened this issue Nov 9, 2022 · 0 comments
Assignees

Comments

@Bogyie
Copy link
Member

Bogyie commented Nov 9, 2022

### 템플릿에서 단순한 표현식 <sup data-p="b">매우 추천함</sup>
**Component templates should only include simple expressions, with more complex expressions refactored into computed properties or methods.**
Complex expressions in your templates make them less declarative. We should strive to describe _what_ should appear, not _how_ we're computing that value. Computed properties and methods also allow the code to be reused.

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

No branches or pull requests

1 participant