Task #91229
Updated by Oliver Hader over 4 years ago
Currently arrow functions (like delta functions or closure functions) are assigned to class properties.
<pre>
public handleSubmit = (event: Event): void => { }
</pre>
which could be simplified as real functions
<pre>
public handleSubmit(event: Event): void { }
</pre>
-----
In PHP the original scenario would look like
<pre>
class Thing
{
public $handleSubmit;
public function __construct()
{
$this->handleSubmit = function($event) {}
}
}
</pre>