Adding example code for AngularJS