a demo using angularJS