Code snippets for AngularJS