anuglarjs code snippets