17 Commits

Author SHA1 Message Date
4b36c3430d chore(angular): update to angular 2.0.0-rc.1 2016-05-05 10:45:49 -07:00
e2366bbb11 docs(menu): update the docs for toggle and close
closes driftyco/ionic-site#393
2016-04-29 14:24:31 -04:00
fc49d1aa29 docs(menu): update menuToggle menuClose docs 2016-02-04 20:32:24 -06:00
acf12cdd15 refactor(menu): inject MenuController to control app menus
Menu has been improved to make it easier to open, close, toggle and
enable menus.
Instead of injecting `IonicApp` to find the menu component, you now
inject
`MenuController`.

Was:

```
constructor(app: IonicApp) {
  this.app = app;
}
openMenu() {
  this.app.getComponent('leftMenu').close();
}
```

Now:

To programmatically interact with any menu, you can inject the
`MenuController`
provider into any component or directive. This makes it easy get ahold
of and
control the correct menu instance. By default Ionic will find the app's
menu
without requiring a menu ID. An id attribute on an `<ion-menu>` is only
required
if there are multiple menus on the same side. If there are multiple
menus, but
on different sides, you can use the name of the side to get the correct
menu

If there's only one menu:

```
constructor(menu: MenuController) {
  this.menu = menu;
}
openMenu() {
  this.menu.close();
}
```

If there is a menu on the left and right side:

```
toggleMenu() {
  this.menu.toggle('left');
}
```

If there are multiple menus on the same side:

```
<ion-menu id="myMenuId" side="left">...</ion-menu>
<ion-menu id="otherMenuId" side="left">...</ion-menu>

closeMenu() {
  this.menu.close('myMenuId');
}
```
2016-02-04 16:47:05 -06:00
d8a4ec3893 docs(menu, menuClose, menuToggle): update docs 2016-02-01 16:27:26 -05:00
e3507bc175 chore(): add types to List 2016-01-14 20:25:33 -06:00
0f64bccc43 chore(): prefix private methods 2015-12-18 15:39:22 -05:00
7138e61e2d docs()menus 2015-12-16 17:05:21 -05:00
068f3ceb29 Merge remote-tracking branch 'origin/master' into WIP-api-demos 2015-12-16 11:13:03 -06:00
520942f697 docs(menu): link to api demo 2015-12-14 08:14:05 -06:00
5d6d9b9610 chore(upgrad): ng alpha52 and case-sensitive templates 2015-12-10 22:52:55 -06:00
d464d5cb1c remove angular2/angular2 imports 2015-12-10 16:41:57 -06:00
1799d1f421 feat(menu): give menu's unique ids 2015-12-09 21:10:13 -06:00
28bb668d43 docs(api): add links to component sections 2015-12-04 13:55:43 -06:00
9bc09300df chore(): rename properties to inputs, events to outputs 2015-10-06 16:28:32 -05:00
52bf1f8520 fix(menuClose): put in ionic directives 2015-09-29 11:45:44 -05:00
0f136e9586 feat(menuClose): menu close directive 2015-09-29 11:03:38 -05:00