Just sample code in AngularJS