Thanks Sander.
After changing link function like following, it works.
link: function(scope, elem, attrs) {
$timeout(function() {
elem[0].submit();
});
On Thursday, March 3, 2016 at 12:23:32 PM UTC+5:30, Sander Elias wrote:
>
> Well, if that's the requirement, just don't use angular. Do it by plain JS.
>
> <form action='blah' on-load='this.submit();'>
>
> Or something similar to that. (not sure that this is 100% working. This
> kind of tricks is decades ago in my past!)
>
> Regards
> Sander
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.