Commit Graph

73 Commits

Author SHA1 Message Date
Andy Joslin
c6dec3c472 refactor(delegates): s/getByHandle/$getByHandle for clarity 2014-03-24 20:51:14 -06:00
Andy Joslin
5567b08c4b delegates: add tabbar, update docs 2014-03-24 20:35:55 -06:00
Andy Joslin
5966dbf43e feat(ionTabs): add available tabs-item-hide class
Closes #395
2014-03-24 12:07:53 -06:00
Adam Bradley
24160aa0bd fix(tabs): Renamed .tab-item active state from .active to .tab-item-active, closes #866 2014-03-24 08:20:31 -05:00
Andy Joslin
e94d400648 feat(content): automatically add/remove has-* classes to content
Also, do manual transclusion on items that would be 'deep' directives -
to fix a problem with transcluding & requiring parent elements.

Closes #619
2014-03-19 16:32:24 -06:00
Andy Joslin
dbe4e3901d feat(ionic): remove all delegates
BREAKING CHANGE: $ionicScrollDelegate, $ionicSlideBoxDelegate, and
$ionicSideMenuDelegate have been removed.

  - $ionicScrollDelegate has been changed to $ionicScrollController.
    Documentation:
    [ionContent](
    http://ajoslin.github.io/docs/nightly/api/directive/ionContent),
    [ionScroll](
    http://ajoslin.github.io/docs/nightly/api/directive/ionScroll)

    Change your code from this:

    ```html
    <ion-content ng-controller="MyCtrl">
      <button ng-click="scrollBottom()">Scroll to bottom!</button>
    </ion-content>
    ```
    ```js
    function MyCtrl($scope, $ionicScrollDelegate) {
      $scope.scrollBottom = function() {
        $ionicScrollDelegate.scrollBottom();
      };
    }
    ```

    To this:

    ```html
    <!-- optional attr controller-bind, see docs -->
    <ion-content ng-controller="MyCtrl">
      <button ng-click="scrollBottom()">Scroll to bottom!</button>
    </ion-content>
    ```
    ```js
    function MyCtrl($scope) {
      $scope.scrollBottom = function() {
        $scope.$ionicScrollController.scrollBottom();
      };
    }
    ```

  - $ionicSideMenuDelegate has been changed to
    $ionicSideMenusController. Documentation:
    [ionSideMenus](http://ajoslin.github.io/docs/nightly/api/directive/ionSideMenus)

    Change your code from this:

    ```html
    <ion-side-menus>
      <ion-side-menu side="left">Side Menu Left</ion-side-menu>
      <ion-pane ion-side-menu-content ng-controller="MyCtrl">
        <button ng-click="toggleLeftMenu()">
          Toggle Left Menu!
        </button>
      </ion-pane>
    </ion-side-menus>
    ```
    ```js
    function MyCtrl($scope, $ionicSideMenuDelegate) {
      $scope.toggleLeftMenu = function() {
        $ionicSideMenuDelegate.toggleLeft();
      };
    }
    ```

    To this:

    ```html
    <!-- optional attr controller-bind, see documentation -->
    <ion-side-menus>
      <ion-side-menu side="left">Side Menu Left</ion-side-menu>
      <ion-pane ion-side-menu-content ng-controller="MyCtrl">
        <button ng-click="toggleLeftMenu()">
          Toggle Left Menu!
        </button>
      </ion-pane>
    </ion-side-menus>
    ```
    ```js
    function MyCtrl($scope) {
      $scope.toggleLeftMenu = function() {
        $scope.$ionicSideMenuController.toggleLeft();
      };
    }
    ```

  - $ionicSlideBoxDelegate has been removed and upgraded to
    $ionicSlideBoxController. It had only one method that
    was unneeded.  [Documentation](
    http://ajoslin.github.io/docs/nightly/api/directive/ionSlideBox)
2014-03-19 11:51:07 -06:00
Andy Joslin
ae57b2b81a test($ionicScrollDelegate): remove xdescribe 2014-03-18 14:58:13 -06:00
Andy Joslin
83f4776f53 chore: remove animation & type attributes, standard controller names 2014-03-18 14:54:21 -06:00
Andy Joslin
b630214fdf refactor(ionTabBar): remove tab.shown and tab.hidden events
Instead, use `on-select` and `on-deselect` attribute callbacks.

Alternatively, listen for $scope.$on('$destroy') in a controller inside
your tab.
2014-03-17 14:41:51 -06:00
Andy Joslin
bd66fc8b28 docs(): remove group tag 2014-03-17 10:24:28 -06:00
Andy Joslin
aa30faf863 fix(ionTab): stop browser-tooltip from appearing due to title attr
Closes #804
2014-03-15 18:57:10 -06:00
Andy Joslin
4427e8778c feat(ionTab): allow custom ngClick expression that doesnt select tab
Closes #784
2014-03-15 09:45:32 -06:00
Andy Joslin
8619d5e8ec docs(): add groups by topic 2014-03-14 15:14:16 -06:00
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
f9766fcf16 docs(): Add docs for ionicViewState, polish other docs 2014-03-10 21:16:09 -06:00
Andy Joslin
765e3199cc docs(ionTabs): cleanup API 2014-03-10 21:16:08 -06:00
Andy Joslin
ecfdbaa67b fix(ionTabs): do not pre-transclude; stops error on compile
Closes #730
2014-03-08 12:52:43 -07:00
Andy Joslin
bcca397c39 fix(ionTabBar): fix iconOn and iconOff being wrong 2014-02-26 16:09:34 -05:00
Andy Joslin
c4549bae4f refactor(tabs): dont pass href attribute to ionTabNav 2014-02-25 12:32:58 -05:00
Andy Joslin
bdcd6bb15f refactor(tabs): preventDefault when anchor is clicked 2014-02-25 12:27:04 -05:00
Andy Joslin
3419e40e52 refactor(tabs): dont show icon if no icon defined 2014-02-25 12:04:58 -05:00
Andy Joslin
bc491b9bd3 style(ionTab): remove space before closing bracket in ionTabNav 2014-02-25 11:24:56 -05:00
Andy Joslin
0f1b6f47b8 fix(ionTabs): cleanup and fix many issues
Closes #597. Fixes #634. Fixes #334. Fixes #175. Fixes #646. Closes #647.
2014-02-25 10:54:41 -05:00
Adam Bradley
2494b5f988 fix(ionPrefix): disableRegisterByTagName updated w/ ion- prefix for correct view history 2014-02-21 10:56:25 -06:00
Adam Bradley
1d3b518289 fix iconOn/iconOff showing in tabs 2014-02-21 09:56:42 -06:00
Adam Bradley
5de0f15e1d add icon class to each icon element in ionTabControllerItem 2014-02-21 09:00:17 -06:00
Adam Bradley
c8292c3267 use .view instead of .pane, for no translate3d, for tab directive 2014-02-20 22:29:02 -06:00
Adam Bradley
67722343dd use span instead of i for tab badges, closes #552 2014-02-20 14:43:22 -06: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
69fda4e526 fix(tabs): broadcast tab.shown/tab.hidden to only child scopes
Addresses #588
2014-02-13 12:15:41 -05:00
Andy Joslin
b11e0f512b feat(tabs): allow tab badge-style attribute to set badge class 2014-02-07 13:16:02 -05:00
Andy Joslin
0facb120c7 feat(tab): allow html in tab title attribute
Closes #528
2014-02-06 22:25:12 -05:00
Adam Bradley
f6c94579b5 remove unused tabBar directive 2014-02-05 19:59:39 -06:00
UniRing
bc927e57e7 feat(tabs): allow badges on tabbar via bound badge attr 2014-02-05 11:38:06 -05:00
Adam Bradley
24c382bd9b feat(tabs): clicking tab item again navigates to tab's home 2014-02-04 23:01:43 -06:00
Adam Bradley
5932dbcd98 $ionicViewService.disableRegisterByTagName 2014-01-24 17:21:37 -06:00
Adam Bradley
cf6598b09f update tab broadcasts, fixes #415 2014-01-14 13:07:52 -06:00
Max Lynch
86d6889628 Fixed #380 - rename ionic services to use $ionic prefix 2014-01-13 10:46:41 -06:00
Adam Bradley
3a598aa21e switching tabs should not use $animate 2014-01-13 09:37:16 -06:00
Adam Bradley
ead7224a1e angular-ui router 2014-01-09 11:12:39 -06:00
Adam Bradley
9f952c3a50 view state wip 2014-01-08 22:37:03 -06:00
Max Lynch
0c78f59262 Force travis rebuild 2014-01-07 18:24:26 -06:00
Adam Bradley
3cfcfc01a4 jshint fixes 2013-12-07 15:05:56 -06:00
Max Lynch
8ac0bafcee Merged new scroll stuff 2013-12-03 19:06:26 -06:00
Max Lynch
f3bf2c1348 Lots of solidification 2013-12-03 18:41:44 -06:00
Max Lynch
e336e4dc54 More removal of flexbox vert 2013-12-03 15:16:01 -06:00
Max Lynch
d030e3317d Getting rid of flexbox changes 2013-12-03 13:28:27 -06:00
Max Lynch
3f4fac80b7 Making some progress 2013-12-02 15:34:58 -06:00
Max Lynch
b44035bfe3 Removed named controller for tabs 2013-11-29 16:02:15 -06:00