Here\'s a normal ES5 function in my Angular code which works:
app.run(function($templateCache){ $templateCache.put(\'/some\',\'thing\') });
I tried another variation which worked: (x)=>… (instead of x=>…)
(x)=>…
x=>…
app.run(($templateCache) => $templateCache.put('/some','thing'));
I guess it needs parentheses for some reason