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.