Snippets in angular