93 Commits

Author SHA1 Message Date
4b36c3430d chore(angular): update to angular 2.0.0-rc.1 2016-05-05 10:45:49 -07:00
df328361fd chore(id): finding component by an id attr has been removed
BREAKING CHANGES: app.getComponent() has been removed. Please use
Angular's ViewChild annotation instead:
http://learnangular2.com/viewChild/
2016-04-28 11:29:48 -05:00
d9b239b695 chore(app): move setAppInjector to postBootstrap 2016-04-18 21:58:36 -05:00
68278b0045 feat(backbutton): add hardware back button
Closes #5071
2016-04-09 22:51:13 -05:00
77772370bf feat(app): getActiveNav() method 2016-04-07 20:45:55 -05:00
6f3b9bef82 style(tslint): tslint updates 2016-04-06 21:28:52 -05:00
17a9e6d44d feat(confg): create a method to access the global app injector which contains references the bootstr
This feature simply sets a reference to the injector on the IonicApp class, so it can be referenced
by other components. This is sometimes necessary when injecting providers that depend on other
providers. This issue is discussed here
https://github.com/angular/angular/issues/4112#issuecomment-139381970, and Brandon Roberts' solution
of an appInjector() method has been used to solve a variety of dependency injection conflicts.
Unfortunately, it requires access to Angular's bootstrap() method, which Ionic handles in the @App
decorator. This fix will create a reference to the appInjector(), so it can be references from
within Ionic components.

closes #5973
2016-03-28 14:50:58 -07:00
4a21fb02f8 docs(IonicApp): IonicApp is not private 2016-03-04 08:55:58 -06:00
3c8daa0781 feat(prodMode): set isProd() when prodMode set in @App config 2016-02-21 13:01:31 -06:00
019009a3e2 chore(): fix bad types for docs 2016-02-12 16:36:27 -05: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
07953672f5 add more types to function parameters and return type 2016-01-19 16:44:46 +08:00
6e9ac500c2 chore(): fix IonicApp types 2016-01-13 23:06:13 -06:00
95501a1e86 fix(tap): do not fire tap click while scrolling
Fixes #681
2016-01-04 22:28:49 -06:00
b0d685ea85 docs()
References #740
2015-12-14 18:13:29 -05:00
d464d5cb1c remove angular2/angular2 imports 2015-12-10 16:41:57 -06:00
85e773b56b refactor(navCtrl): move async parts of transition into their own fn 2015-12-01 19:59:21 -06:00
b01301b3b2 fix(zone): ensure rAFs are firing outside of zone 2015-11-30 22:46:43 -06:00
9dde122d4f refactor(clickBlock): add to dom on init 2015-11-29 01:14:51 -06:00
424800a3c9 fix(transition): update disabling transitions 2015-11-24 14:02:40 -06:00
002e5e86a6 perf(): raf updates 2015-11-20 20:24:21 -06:00
19ff9e0a2c perf(raf): use rafFrames instead of fastdom 2015-11-20 14:10:44 -06:00
00f9611e71 feat(clickBlock): enable click block only on iOS 2015-11-19 11:23:41 -06:00
406fa18c5a perf(ripple): ripple perf improvements 2015-11-10 14:42:35 -06:00
3648b48192 IonicApp api doc
Closes #255.
2015-10-06 16:29:05 -05:00
3324f3cc90 refactor(overlay): actionsheet/popup 2015-10-04 22:35:54 -05:00
dfe19a962d use title service 2015-10-04 11:45:32 -05:00
2b86705f54 bootstrap refactor wip 2015-10-04 00:20:41 -05:00
5b0eda5be1 refactor(config): get/set/settings and unit tests 2015-10-02 15:23:08 -05:00
2f446f182f :derp: console.log 2015-09-30 17:29:45 -05:00
bb74cdc717 feat(scroll): statusbar tap scroll to top 2015-09-30 17:26:16 -05:00
8ef7a67f55 Removed alert 2015-09-30 16:59:31 -05:00
b66fc45a20 chore(logs): removed bad console error 2015-09-30 15:57:05 -05:00
72658bd970 feat(plugin): Network Information and global offline/online events 2015-09-28 15:03:20 -05:00
26dcf4c3a7 chore(ripple): updates 2015-09-26 21:58:16 -05:00
c3ea116046 feat(i18n): translation service 2015-09-25 11:56:54 -05:00
db6c7b7283 feat(nav): add NavRegistry 2015-09-24 17:34:47 -06:00
88eaa45f4c refactor(navbar): improved navbar transitions 2015-09-23 23:17:06 -05:00
1a48cbec96 fix(activator): ensure links active during transition 2015-09-23 20:32:46 -05:00
27373e0448 feat(events): pub/sub event system 2015-09-23 13:43:38 -05:00
8f76057147 derp 2015-09-23 10:50:48 -05:00
d51882e524 chore(IonicApp): update description 2015-09-23 10:47:16 -05:00
ffb43a4e52 fix(bootstrap): ready function if body not ready
Closes #156
2015-09-22 09:11:25 -05:00
88c547c535 refactor(activator): ripple activator 2015-09-21 13:48:58 -05:00
f704cc3e97 rename ActionMenu to ActionSheet 2015-09-17 23:41:09 -05:00
2ecde315f2 fix(isEnabled): do not disable during menu close 2015-09-17 21:55:53 -05:00
5fbc142dae swipe back refactor 2015-09-17 16:13:51 -05:00
cbf990f4cf error when same id registered
Closes #123
2015-09-16 12:32:17 -05:00
d25ce946f6 disable :hover on touch devices 2015-09-14 22:27:09 -05:00
41f2942fe7 improve css deactivate fallback 2015-09-14 21:43:55 -05:00