Implement interface using AngularJS