Implement ng-accept