Prototype LAW app in angular.js