rewrite angular snippets