Hi Brandon,
I've done something similar to this, i.e., created a recaptcha component, however, I've not opted for a dynamic load of the api.js script, rather installed it with bower then on `didInsertElement` I just explicitly render the recaptcha, so there's no need for a callback, like so:
export default Ember.Component.extend({
classNames: ['g-recaptcha''],
attributeBindings: ['data-sitekey'],
'data-sitekey': '...',
didInsertElement: function () {
var self = this;
grecaptcha.render(self.$().prop('id'), {
'sitekey': self.get('data-sitekey')
});
}
});
reCaptcha, however, does add an invisible div at the bottom of 'body' which in RTL mode messes up the layout, wonder if you have a cure for that?
Thanks,