Unnamed
Unnamed

Reputation: 1790

AngularJS how can I use the default behavior for an anchor tag?

In angularjs, when I use an a tag, I am really using the a directive which prevents the default behavior of reloading the page. However, in my case, I want the link to take me to my /api/logout path, which requires an actual GET request. In other words, I just want it to work like a normal anchor tag. How can I do this?

Upvotes: 0

Views: 152

Answers (1)

Dalorzo
Dalorzo

Reputation: 20014

I think you may be referring to ng-non-bindable. Angular will not compile (ignore) elements with this attribute.

Here is the angular documentation on this:

http://docs.angularjs.org/api/ng.directive:ngNonBindable

Upvotes: 1

Related Questions