This repository was archived by the owner on Feb 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 248
Directives #1037
Closed
Closed
Directives #1037
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
aafd870
docs(directive): edit directive class definitions
naomiblack 53eb554
refactor(DecoratorFormatter): Fix a bad rename. DecoratorFormatter is…
naomiblack 6d29fec
docs(directive): fix whitespace and a missed rename from 0e0f8d6
naomiblack 245db29
docs(formatter): improvements to currency, date, filter, and formatte…
naomiblack c357e47
docs: edit formatter docs
naomiblack caa82f0
docs(formatter): fix "leading" in currency and edits to limit_to
naomiblack 16478af
docs(formatter): fix and edit per comments on 0e0f8d6
naomiblack f989847
docs(InputDateLike): Improve and edit the class description
naomiblack 08a89eb
docs(NgTrueValue): Edits for dartdoc style.
naomiblack 229cbc0
docs(NgFalseValue): Edits for dartdoc style.
naomiblack 851d699
docs(ng-model): Fix typos and style
naomiblack 2ae9cfd
docs(ng-bind): Edits for dartdoc format
naomiblack 6a20d5c
docs(NgModelConverter): Edits for style.
naomiblack File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,17 +1,16 @@ | ||
part of angular.directive; | ||
|
||
/** | ||
* @ngdoc directive | ||
* @name ng.directive:a | ||
* @restrict E | ||
* Modifies the default behavior of the HTML `<a>` element to allow for data binding. | ||
* | ||
* @description | ||
* Modifies the default behavior of the html A tag so that the default action is | ||
* prevented when the a href is empty or it contains `ng-click` directive. | ||
* When an `href` tag is empty, or when used with `ng-click`, this directive intercepts and | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. merge the first sentence here with the above comment. |
||
* modifies the default behavior of the `<a>` element. This change permits the easy | ||
* creation of action links with the [OnClick] directive, without changing the location or causing | ||
* a page reload. | ||
* | ||
* This change permits the easy creation of action links with the `ngClick` | ||
* directive without changing the location or causing page reloads, e.g.: | ||
* `<a href="" ng-click="model.save()">Save</a>` | ||
* Example: | ||
* | ||
* <a href="" ng-click="model.save()">Save</a> | ||
*/ | ||
@Decorator(selector: 'a[href]') | ||
class AHref { | ||
|
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not right.
Modifies the default behavior of HTML
a
element to prevent navigation from the current page in casehref
attribute is empty.