Update GUIDE.md

This commit is contained in:
Eliezer 2015-08-11 22:34:18 +03:00
parent a88d894eb1
commit bd35647fcf

View file

@ -363,6 +363,13 @@ Then attach it to a `button` or `a` element by passing in the name of the templa
<button data-ion-modal="myModal">Open Modal</button>
```
If you'd like to have another element dismiss the modal, add `data-dismiss=modal` to it. For example, you can create a close button as follows:
```
<button class="button button-positive" data-dismiss=modal>
Close Modal
</button>
```
## Popups
You show alerts using the `ionPopup` component. This can be done as follows:
@ -372,10 +379,3 @@ IonPopup.alert({title: 'title', subTitle: 'subTitle', template: 'some text to sh
```
You can also use `IonPopup.confirm({})`, `IonPopup.prompt({})` and `IonPopup.close()`.
If you'd like to have another element dismiss the modal, add `data-dismiss=modal` to it. For example, you can create a close button as follows:
```
<button class="button button-positive" data-dismiss=modal>
Close Modal
</button>
```