On Wed, Jan 27, 2016 at 2:33 AM, Lenin Muthu kumar <
[email protected]> wrote:

> hi Nicolas,
>
>        Thanks for your suggestion but href is will create a link.  what i
> want is i should use button not link. when i click the button it should
> redirect.
>

the button link can use $window.location.href = 'your-url';

<button ng-click="red()"></button>

$scope.red = function() {
  $window.location.href = 'your-url';
};

Rafael

-- 
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.

Reply via email to