How to have decorators be on their own lines?
In Angular Typescript files, a property can have a @decorator. Instead of having the decorator and the property declaration on the same line, can the decorator(s) be on its own line?
Example:
@HostBinding('class') get getClass() {
return Object.keys(this.screen.sizes).filter(cl => this.screen.sizes[cl]).join(' ');
}
to
@HostBinding('class')
get getClass() {
return Object.keys(this.screen.sizes).filter(cl => this.screen.sizes[cl]).join(' ');
}
Please sign in to leave a comment.
Unfortunately, it can't be configured at the moment. Please vote for https://youtrack.jetbrains.com/issue/WEB-21121/Code-style-option-for-decorators.