forked from angular/angular.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ng:href was producing unclickable links, as the event propagation was stopped by 'a' widget All links in regression/issue-352.html were tested in: * Chrome 11 * Opera 11 * Firefox 4 * IE7, IE8 Closes angular#352
- Loading branch information
Showing
3 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE HTML> | ||
<html xmlns:ng="http://angularjs.org"> | ||
<script type="text/javascript" src="../build/angular.js" ng:autobind></script> | ||
<body ng:init="scope = { itemId: 12345 }"> | ||
<input name="value" /><br /> | ||
<a id="link-1" href ng:click="value = 1">link 1</a> (link, don't reload)<br /> | ||
<a id="link-2" href="" ng:click="value = 2">link 2</a> (link, don't reload)<br /> | ||
<a id="link-3" ng:href="#{{'123'}}" ng:click="value = 3">link 3</a> (link, reload!)<br /> | ||
<a id="link-4" href="" name="xx" ng:click="value = 4">anchor</a> (link, don't reload)<br /> | ||
<a id="link-5" name="xxx" ng:click="value = 5">anchor</a> (no link)<br /> | ||
<a id="link-6" ng:href="#/{{value}}">link</a> (link, change hash) | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters