JavaScript uses decorator for attributes

export default class extends Controller{
  @dec propName;      // does not work
  @dec propName() {}  // works
}

function dec() {
  //...
}

if I use the first method, it will not be executed in dec at all. I need to use the second writing method. I would like to ask you, Daniel, how I can directly use decorator, on attributes just like the first one.


the first one should be possible

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e54f68-438a4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e54f68-438a4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?