NetanelBasal
6/3/2017 - 7:13 PM

recaptcha.directive.ts

export interface ReCaptchaConfig {
  theme? : 'dark' | 'light';
  type? : 'audio' | 'image';
  size? : 'compact' | 'normal';
  tabindex? : number;
}

@Directive({
  selector: '[nbRecaptcha]'
})
export class RecaptchaDirective {
  @Input() key : string;
  @Input() config : ReCaptchaConfig = {};
  @Input() lang : string;
}