Skip to content

Commit

Permalink
docs(datetime): add correct angular usage example in a modal (#23564)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi authored Jul 1, 2021
1 parent de6c024 commit be4f89e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions core/src/components/datetime/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,11 @@ dates in JavaScript.
<!-- Datetime in overlay -->
<ion-button id="open-modal">Open Datetime Modal</ion-button>
<ion-modal trigger="open-modal">
<ion-content>
<ion-datetime></ion-datetime>
</ion-content>
<ng-template>
<ion-content>
<ion-datetime></ion-datetime>
</ion-content>
</ng-template>
</ion-modal>

```javascript
Expand Down
8 changes: 5 additions & 3 deletions core/src/components/datetime/usage/angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@
<!-- Datetime in overlay -->
<ion-button id="open-modal">Open Datetime Modal</ion-button>
<ion-modal trigger="open-modal">
<ion-content>
<ion-datetime></ion-datetime>
</ion-content>
<ng-template>
<ion-content>
<ion-datetime></ion-datetime>
</ion-content>
</ng-template>
</ion-modal>

```javascript
Expand Down

0 comments on commit be4f89e

Please sign in to comment.