docs(img): unencoded img tag in readme (#19172)

This commit is contained in:
Matthew Harris
2019-08-27 21:50:56 +07:00
committed by Brandy Carney
parent 48a27636c7
commit 7f6664708c
3 changed files with 4 additions and 4 deletions

View File

@ -880,7 +880,7 @@ export namespace Components {
*/
'alt'?: string;
/**
* The image URL. This attribute is mandatory for the <img> element.
* The image URL. This attribute is mandatory for the `<img>` element.
*/
'src'?: string;
}
@ -4373,7 +4373,7 @@ declare namespace LocalJSX {
*/
'onIonImgWillLoad'?: (event: CustomEvent<void>) => void;
/**
* The image URL. This attribute is mandatory for the <img> element.
* The image URL. This attribute is mandatory for the `<img>` element.
*/
'src'?: string;
}

View File

@ -25,7 +25,7 @@ export class Img implements ComponentInterface {
@Prop() alt?: string;
/**
* The image URL. This attribute is mandatory for the <img> element.
* The image URL. This attribute is mandatory for the `<img>` element.
*/
@Prop() src?: string;
@Watch('src')

View File

@ -73,7 +73,7 @@ export const ImgExample: React.FC = () => (
| Property | Attribute | Description | Type | Default |
| -------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------- | ----------- |
| `alt` | `alt` | This attribute defines the alternative text describing the image. Users will see this text displayed if the image URL is wrong, the image is not in one of the supported formats, or if the image is not yet downloaded. | `string \| undefined` | `undefined` |
| `src` | `src` | The image URL. This attribute is mandatory for the <img> element. | `string \| undefined` | `undefined` |
| `src` | `src` | The image URL. This attribute is mandatory for the `<img>` element. | `string \| undefined` | `undefined` |
## Events