Skip to content

Commit

Permalink
docs(avatar): update angular usage for img src (#16884)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydeepk3 authored and liamdebeasi committed Apr 26, 2019
1 parent 17a77fd commit 5ed3b1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 27 deletions.
25 changes: 1 addition & 24 deletions core/src/components/avatar/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,7 @@ Avatars can be used by themselves or inside of any element. If placed inside of

## Usage

### Angular

```html
<ion-avatar>
<img [src]="user.img">
</ion-avatar>

<ion-chip>
<ion-avatar>
<img [src]="user.img">
</ion-avatar>
<ion-label>Chip Avatar</ion-label>
</ion-chip>

<ion-item>
<ion-avatar slot="start">
<img [src]="user.img">
</ion-avatar>
<ion-label>Item Avatar</ion-label>
</ion-item>
```


### Javascript
### Angular / javascript

```html
<ion-avatar>
Expand Down
6 changes: 3 additions & 3 deletions core/src/components/avatar/usage/angular.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
```html
<ion-avatar>
<img [src]="user.img">
<img src="https://gravatar.com/avatar/dba6bae8c566f9d4041fb9cd9ada7741?d=identicon&f=y">
</ion-avatar>

<ion-chip>
<ion-avatar>
<img [src]="user.img">
<img src="https://gravatar.com/avatar/dba6bae8c566f9d4041fb9cd9ada7741?d=identicon&f=y">
</ion-avatar>
<ion-label>Chip Avatar</ion-label>
</ion-chip>

<ion-item>
<ion-avatar slot="start">
<img [src]="user.img">
<img src="https://gravatar.com/avatar/dba6bae8c566f9d4041fb9cd9ada7741?d=identicon&f=y">
</ion-avatar>
<ion-label>Item Avatar</ion-label>
</ion-item>
Expand Down

0 comments on commit 5ed3b1c

Please sign in to comment.