diff options
| author | Caitlin Potter | 2014-02-06 14:02:18 +0000 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 19:03:40 +0000 |
| commit | f7d28cd377f06224247b950680517a187a7b6749 (patch) | |
| tree | 20203b9f7bf60748bb752f325b1869415352a6f3 /src/ng/directive/booleanAttrs.js | |
| parent | 2e641ac49f121a6e2cc70bd3879930b44a8a7710 (diff) | |
| download | angular.js-f7d28cd377f06224247b950680517a187a7b6749.tar.bz2 | |
docs(all): convert <pre>/</pre> snippets to GFM snippets
Diffstat (limited to 'src/ng/directive/booleanAttrs.js')
| -rw-r--r-- | src/ng/directive/booleanAttrs.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/ng/directive/booleanAttrs.js b/src/ng/directive/booleanAttrs.js index d2ba61df..b49105cd 100644 --- a/src/ng/directive/booleanAttrs.js +++ b/src/ng/directive/booleanAttrs.js @@ -16,14 +16,14 @@ * The `ngHref` directive solves this problem. * * The wrong way to write it: - * <pre> + * ```html * <a href="http://www.gravatar.com/avatar/{{hash}}"/> - * </pre> + * ``` * * The correct way to write it: - * <pre> + * ```html * <a ng-href="http://www.gravatar.com/avatar/{{hash}}"/> - * </pre> + * ``` * * @element A * @param {template} ngHref any string which can contain `{{}}` markup. @@ -106,14 +106,14 @@ * `{{hash}}`. The `ngSrc` directive solves this problem. * * The buggy way to write it: - * <pre> + * ```html * <img src="http://www.gravatar.com/avatar/{{hash}}"/> - * </pre> + * ``` * * The correct way to write it: - * <pre> + * ```html * <img ng-src="http://www.gravatar.com/avatar/{{hash}}"/> - * </pre> + * ``` * * @element IMG * @param {template} ngSrc any string which can contain `{{}}` markup. @@ -132,14 +132,14 @@ * `{{hash}}`. The `ngSrcset` directive solves this problem. * * The buggy way to write it: - * <pre> + * ```html * <img srcset="http://www.gravatar.com/avatar/{{hash}} 2x"/> - * </pre> + * ``` * * The correct way to write it: - * <pre> + * ```html * <img ng-srcset="http://www.gravatar.com/avatar/{{hash}} 2x"/> - * </pre> + * ``` * * @element IMG * @param {template} ngSrcset any string which can contain `{{}}` markup. @@ -154,11 +154,11 @@ * @description * * The following markup will make the button enabled on Chrome/Firefox but not on IE8 and older IEs: - * <pre> + * ```html * <div ng-init="scope = { isDisabled: false }"> * <button disabled="{{scope.isDisabled}}">Disabled</button> * </div> - * </pre> + * ``` * * The HTML specification does not require browsers to preserve the values of boolean attributes * such as disabled. (Their presence means true and their absence means false.) |
