using angular to load snippets or full html content