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(' ');
}

 

0
1 comment

Please sign in to leave a comment.