Use of AngularJS and NgGrid