I have a basic angular app with one controller. Now, i am creating a signin with g+ button like this
(function() {
var po = document.createElement('script');
po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/client:plusone.js?onload=renderSignin';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(po, s);
})();
the function 'renderSignin' is defined in my controller as follows
$scope.renderSignin = function() { ... }
But it looks like it can't be found. I also tried {{renderSignin}}, but it didn't work either Is there something i have to do to get it to work? Thanks.