angular mainsnippet