mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-15 18:13:38 +08:00
The generated snippet was: worker.onmessage = ({ data }) => { console.log('page got message: $\{data\}'); }; which doesn't use a template string and so does not log `data`. Fixes the generated snippet to be `console.log(`page got message: ${data}`);`. Also adds a newline at the end of the web worker template to not fail the default TSLint rules if the schematic is used.