# Labelling a Toggle

**URL:** <https://forum.ionicframework.com/t/labelling-a-toggle/537>\
**Category:** ionic-v1\
**Created:** [January 15, 2014, 10:38pm UTC](https://forum.ionicframework.com/t/labelling-a-toggle/537 "2014-01-15T22:38:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Calendee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calendee/32/13656_2.png) [@Calendee](https://forum.ionicframework.com/u/Calendee)\
**Post date:** [January 15, 2014, 10:38pm UTC](https://forum.ionicframework.com/t/labelling-a-toggle/537/1 "2014-01-15T22:38:01Z")

</div>

Okay, so I’m really stuck here. The docs show using a “toggle” with actual HTML. As discussed a few times here, the “best” way is to use the Ionic provided directive `<toggle>`.

Using `<toggle>` works great. Except, I can’t figure out how to apply the actual label to it to save my life.

See example (ignore the funky formatting problem with header - don’t care about that) : UPDATE LINK : [http://plnkr.co/edit/7RbDfobcwYyoRHc0ZRm8?p=preview](http://plnkr.co/edit/7RbDfobcwYyoRHc0ZRm8?p=preview)

I’ve shown toggles with raw html and 3 different versions using the directive. I can’t apply a nice label at all. I’ve looked at the raw code as well and find nothing that indicates what attribute to use to assign the label.

Any ideas?

---

<div class="post-metadata">

**Author:** ![alexb](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexb](https://forum.ionicframework.com/u/alexb)\
**Post date:** [January 15, 2014, 11:41pm UTC](https://forum.ionicframework.com/t/labelling-a-toggle/537/2 "2014-01-15T23:41:49Z")

</div>

Just to add to this, I would like it so you can have the text IN the toggle

e.g.

[Hot | Cold]

Is that possible (or could it be possible). I couldn’t get that to work either but its a fairly regular toggle use in apps.

Thanks!

---

<div class="post-metadata">

**Author:** ![Calendee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calendee/32/13656_2.png) [@Calendee](https://forum.ionicframework.com/u/Calendee)\
**Post date:** [January 16, 2014, 1:57am UTC](https://forum.ionicframework.com/t/labelling-a-toggle/537/3 "2014-01-16T01:57:25Z")

</div>

I finally solved it:

```auto
<div class="item item-toggle">
    <toggle ng-model="fd.textInfo.sendText"></toggle>
    Send Invitation By Text?
</div>

```

Updated plunker to show the solution.

> **[Plunker - Modal inside toggle](http://plnkr.co/edit/7RbDfobcwYyoRHc0ZRm8?p=preview)**
>
> Created on https://plnkr.co: Helping you build the web.
