Commit Graph

46 Commits

Author SHA1 Message Date
Andy Joslin
bfcfae3747 feat(ionNavBar,ionHeaderBar): use declarative syntax
BREAKING CHANGE:

navBar is majorly different.  Manually write this when changelog is
released.  Add link to docs.
2014-03-14 13:06:10 -06:00
Andy Joslin
e9625ded9d docs: add services, utilities 2014-03-11 13:02:36 -06:00
Andy Joslin
f9766fcf16 docs(): Add docs for ionicViewState, polish other docs 2014-03-10 21:16:09 -06:00
Adam Bradley
78206d0e7c fix(navView): _getView renamed to _getViewById, closes #736 2014-03-06 11:24:46 -06:00
Adam Bradley
ec6c4ded2a only animate title change if they're different 2014-03-03 15:28:05 -06:00
Adam Bradley
7ff6f0a897 go back to just show/hide back-button for now 2014-02-26 11:38:49 -06:00
Andy Joslin
8354d42b4b feat(ionNavAnimation): <a href="#/page" ion-nav-animation="slide-in-up"> 2014-02-26 08:40:02 -05:00
Adam Bradley
7deefe1ddb fix(back-button): Fade in/out back button instead of animating left/right, closes #624 2014-02-25 13:03:51 -06:00
Andy Joslin
465ea76969 fix(navBar): animations, hide back button, no flicker
Closes #653
2014-02-21 12:45:27 -05:00
Max Lynch
89ec1b954e fix(htmlSanitize) - Added ngSanitize back, fixes #641 2014-02-20 09:48:55 -08:00
Andy Joslin
2c39a21498 feat(ionic): prefix all directives with ion-
BREAKING CHANGE: All directives are now prefixed with `ion-`.

For any directive you use, add the ionic prefix.

For example, change this HTML:

```html
<tabs>
  <tab title="home" href="/tab/home">
    <content>Hello!</content>
  </tab>
</tabs>
```

To this HTML:

```
<ion-tabs>
  <ion-tab title="home" href="/tab/home">
    <ion-content>Hello!</ion-content>
  </ion-tab>
</ion-tabs>
```
2014-02-18 16:13:00 -05:00
Andy Joslin
7cf4eef961 refactor(navBar): do not animate if there is no navDirection 2014-02-17 22:05:49 -05:00
Andy Joslin
d056ad1fef perf(animations): throttle calls to requestAnimationFrame
Closes #582
2014-02-17 17:26:34 -05:00
UniRing
3d7011eb19 test(navBar): add tests for changing title, left/right buttons
Closes #622. Closes #623.
2014-02-17 16:52:10 -05:00
UniRing
7f9668090d Fixes NavBar
Fixes NavBar not showing the right buttons and not updating his title
correctly.
2014-02-17 21:20:59 +01:00
Andy Joslin
749cd3829c fix(navBar): animations work properly
Starting a couple of versions ago, animations in navbar stopped working.
I took this as a chance to fix this, and ddo a refactor to make the code
more modular and testable.

Lots of manual dom manipulation was offloaded to angular directives, and
now we will not have bugs with end-user using interpolated class
attribute on their own nav-bar and overriding our own manually added
classes.
2014-02-17 09:11:52 -05:00
Andy Joslin
35ad05163a refactor(navBar): use class interpolation 2014-02-13 16:02:00 -05:00
Andy Joslin
65e10afd08 refactor(navBar): use ngClass instead of interpolated class 2014-02-13 15:05:42 -05:00
Andy Joslin
5470d77ac0 feat(navBar): allow expression in type. <nav-bar type="{{myType}}">
Closes #599
2014-02-13 14:56:29 -05:00
Adam Bradley
74a05a0338 fix(backButton): able to hide back button if any back button attr set in navBar, closes #564 2014-02-10 15:07:20 -06:00
Adam Bradley
2cdc8ba925 back button defaulted to hide 2014-02-08 21:45:41 -06:00
Adam Bradley
2d39418d0b fix(backButton): Do not show back button if no attributes set, closes #549 2014-02-06 20:31:47 -06:00
Adam Bradley
fc4f1b7c61 use className instead of classList 2014-02-06 16:49:21 -06:00
Adam Bradley
4808e80ddf fix(navBar): Remove duplicate back button arrows, closes #547 2014-02-06 16:30:00 -06:00
Andy Joslin
e755623331 feat(ionic): remove angular-sanitize (ngSanitize) as dependency
Add small bindHtmlUnsafe directive without html checking
2014-02-06 15:50:12 -05:00
Andy Joslin
990d14e8fe fix(navView): if !$animate.enabled(), do not animate
Closes #426
2014-02-05 14:41:31 -05:00
Adam Bradley
738ace8969 fix(navBar): Back button w/ text to use inner <i> 2014-02-04 20:57:57 -06:00
Andy Joslin
2d1b71c8e2 feat(content): remember scroll of previous page
`content` directive stores scroll in view page history.

The history is passed down through $viewContentLoaded event, which is
broadcasted by navView directive when it loads a page.
2014-02-04 08:48:03 -05:00
Andy Joslin
479175bf5d refactor(view): use nextUid from angular to generate unique ids
Math.random() is unreliable, produces duplicates, and numbers can
overflow if you use them for long enough.
2014-02-04 08:46:02 -05:00
UniRing
8b44004af2 Allows a view to update the navbar title if his title changes
Added a watch to see if the contents of the view title changes and, if
so, fire an event to notify the navbar and update the title.
2014-01-31 00:59:12 +01:00
Adam Bradley
dc7420012e refactor navView and viewService 2014-01-24 17:21:37 -06:00
Max Lynch
85b709e5ac Fixed #465 - HTML in header titles 2014-01-23 13:02:44 -06:00
Adam Bradley
9efe95ef06 fix double call on back button 2014-01-14 13:00:37 -06:00
Max Lynch
86d6889628 Fixed #380 - rename ionic services to use $ionic prefix 2014-01-13 10:46:41 -06:00
Adam Bradley
4f155964dd nav bar hidden by default 2014-01-12 23:00:30 -06:00
Adam Bradley
3124ef3981 update how view's set titles, closes #337 2014-01-12 22:39:10 -06:00
Adam Bradley
d4a9bed1d7 update enteringScope for view transition 2014-01-12 21:56:23 -06:00
Adam Bradley
944e89acba deregister watches on view destroy 2014-01-12 20:12:53 -06:00
Adam Bradley
ff310600d9 fix view hideNavBar attribute, closes #394 2014-01-12 13:41:00 -06:00
Adam Bradley
71e1f98f19 show/hide back button from view 2014-01-11 23:25:13 -06:00
Adam Bradley
6d9dffe8e5 dist build 2014-01-10 15:13:16 -06:00
Adam Bradley
7cbfcc18d8 view-state fixes 2014-01-10 15:08:25 -06:00
Adam Bradley
915e7a9376 trim after its time to go 2014-01-10 09:03:22 -06:00
Adam Bradley
ead7224a1e angular-ui router 2014-01-09 11:12:39 -06:00
Adam Bradley
cd65a8dc7b v0.9.19 2014-01-09 09:49:37 -06:00
Adam Bradley
9f952c3a50 view state wip 2014-01-08 22:37:03 -06:00