Commit Graph

306 Commits

Author SHA1 Message Date
Adam Bradley
f32bbb08b7 Merge pull request #2093 from novas1r1/patch-1
docs(itemReorderButton): update itemReorderButton.js
2014-08-28 12:09:54 -05:00
Adam Bradley
e9f0fcf556 refactor(clickBlock): add click-block div to body
Instead of using pointer-events: none to disable unwanted clicks which
can cause flickering, we’re now using a click-block div that covers the
view during transitions. Similar concept to pointer-events: none
applied to the body tag, but in tests its showing to be more effective
to not cause any flickers.
2014-08-27 12:56:12 -05:00
novas1r1
f2865a2a46 Update itemReorderButton.js
Fixed wrong closing tag
2014-08-27 09:37:00 +02:00
Adam Bradley
2c3f1c9f02 feat($ionicBody): service to simplify body ele interaction
Many services/directives have to interact with the body element, and
each one has to write the same long code. The $ionicBody service
provides some useful methods to clean up and reduce redundant code.
2014-08-26 22:23:07 -05:00
Adam Bradley
b69aa5485f feat(splitView): expose side menu on large viewport
Ability to keep a left menu exposed on larger viewports, such as a
landscape tablet. Added the `expose-aside-menu` attribute directive.
2014-08-26 15:00:42 -05:00
Max Lynch
853fad19b1 New transition styles 2014-08-24 15:08:30 -05:00
Andrew
6d859f4876 fix(popup): fix alignment, backdrop not fading out 2014-08-20 14:17:19 -06:00
Andrew
cc8f31d8e8 feat(ionScroll): add locking option
Closes #2034
2014-08-20 12:29:20 -06:00
Andrew
af229072df feat(ionContent): add locking option
Closes #2034
2014-08-20 12:29:15 -06:00
Andrew
029f8f3353 feat($ionicScrollDelegate): expose zoomBy and zoomTo methods
Closes #1977
2014-08-20 12:19:42 -06:00
Andrew
5d06c4aef8 feat(popover): support popping from bottom or top of screen
Closes #1986
2014-08-20 12:09:08 -06:00
Perry Govier
25ee658e8b amend(loading): simpler/more clean fix for #1914 2014-08-20 13:04:48 -05:00
Andrew
120f99ee79 fix(collectionRepeat): always render data correctly with before/after isblings
Closes #2025
2014-08-20 11:22:05 -06:00
Andrew
beecc6274e amend(collectionRepeat): don't render an extra item at the end
Closes #2027
2014-08-20 11:07:11 -06:00
Adam Bradley
b31f4e8e3f refactor(sideMenu): move controller logic to $ionicSideMenus 2014-08-20 11:09:48 -05:00
Andrew
4595fd3cc4 refactor($ionicTabsDelegate): for .select() take away second argument
Closes #1682
2014-08-20 10:03:45 -06:00
Perry Govier
65aece2aad fix(loading): potential race condition with showing and hiding loading in same watch cycle 2014-08-19 15:07:10 -05:00
Perry Govier
0bf6bc575b ammend(reorder): JS lint cleanup 2014-08-19 13:29:58 -05:00
Perry Govier
cc18a64bf4 fix(reorder): item click handlers dont fire when tapping on reorder icon 2014-08-19 11:32:35 -05:00
Andrew
d18f0f77cd test(view): amend some broken tests 2014-08-18 09:30:13 -06:00
Andrew
c5966bba05 fix(scrollView): resolve memory leaks with holding element references
Addresses #1993
2014-08-18 09:01:29 -06:00
Jim Cummins
1601c07291 (fix): resolve typo in usage
(fix): resolve typo in usage
Fixes typo.
No breaking changes
2014-08-15 16:40:44 -05:00
Perry Govier
359ca33024 docs(templateCache): reformat to conform to ngDoc 2014-08-15 15:48:33 -05:00
Perry Govier
e6af369aff amend(templateCache): JS lint cleanup 2014-08-15 15:15:32 -05:00
Perry Govier
944a92b08d feat(templateCache): automatically cache template files to prevent flicker on page navigation and improve performance
State templates are cached automatically, but you can optionally cache other templates.
```js
$ionicTemplateCahce('myNgIncludeTemplate.html');
```

Optionally disable all preemptive caching with the `$ionicConfigProvider` or individual states by setting `prefetchTemplate`
in the $state definition
```js
$ionicTemplateCahce('myNgIncludeTemplate.html');
```js
  angular.module('myApp', ['ionic'])
  .config(function($stateProvider, $ionicConfigProvider) {

    // disable preemptive template caching globally
    $ionicConfigProvider.prefetchTemplates(false);

    // disable individual states
    $stateProvider
      .state('tabs', {
        url: "/tab",
        abstract: true,
        prefetchTemplate: false,
        templateUrl: "tabs-templates/tabs.html"
      })
      .state('tabs.home', {
        url: "/home",
        views: {
          'home-tab': {
            prefetchTemplate: false,
            templateUrl: "tabs-templates/home.html",
            controller: 'HomeTabCtrl'
          }
        }
      });
  });
```
2014-08-15 15:10:19 -05:00
Andrew
834e2bb173 amend($ionicConfigProvider): fix typo, add unit tests 2014-08-15 13:11:44 -06:00
Andrew
2643cffc19 feat($ionicConfigProvider): add $ionicConfigProvider 2014-08-13 11:44:45 -06:00
Andrew
8c6d5f2c96 fix(collectionRepeat): simplify item reusing process to fix rare reuse error
Closes #1777.
2014-08-13 10:30:44 -06:00
Mike Hartington
2d2fd773a3 Merge pull request #1960 from sebakerckhof/master
Fix listController documentation errors
2014-08-12 15:07:52 -04:00
Anton Shevchenko
d29eaa3582 Update radio.js 2014-08-11 22:22:54 -04:00
Anton Shevchenko
2584dae8ab Update radio.js 2014-08-11 21:01:30 -04:00
Anton Shevchenko
d5b2231118 Update radio.js 2014-08-11 20:58:59 -04:00
Anton Shevchenko
4c09bc8d0c Update ion-radio documentation
Listed all accepted attributes for ion-radio directive based on source code.
2014-08-11 20:58:25 -04:00
Andrew
977f681818 fix(collectionRepeat): with ngHref, make href attr erase if falsy
Fixes #1674
2014-08-11 10:29:32 -04:00
Andrew
5e025fbb01 fix(collectionRepeat): rerender when $ionicScrollDelegate resizes
Fixes #1777
2014-08-11 10:23:49 -04:00
Andrew
9a1f3d7e26 style(scrollController): fix jshint semicolon 2014-08-11 10:12:54 -04:00
Andrew
9bfa3bd18b fix(collectionRepeat): ignore spacing of hidden elements (ion-refresher)
Closes #1970
2014-08-11 10:06:31 -04:00
sebakerckhof
169a4bf6e4 Fix listController documentation errors 2014-08-09 12:11:17 +02:00
Perry Govier
044fac4d77 fix(popup): only override prompt input if template includes HTML 2014-08-08 15:00:19 -05:00
Perry Govier
c336e8ede8 fix(refresher): finish animating before changing icon, hide when not in use 2014-08-07 17:54:30 -05:00
Adam Bradley
8cf540e54c style(): missing semi-colon 2014-08-07 12:24:24 -05:00
Adam Bradley
944d2595af fix(sideMenu): fix stopping content scrolling
When a list was within a side menu it could scroll up and down, but if
the user happened to drag a little bit on the X axis, then it would try
to open the side menu and the Y scroll of the content stopped. Closes
#1541
2014-08-07 12:22:28 -05:00
Andrew
d3ed66e0cd fix(actionSheet): run $apply when closing actionSheet with back button 2014-08-06 14:34:33 -06:00
Adam Bradley
94a06dbdc2 style(): fix missing semi-colon 2014-08-06 15:27:13 -05:00
Adam Bradley
f246c5aa20 fix(sideMenu): remove .menu-open on destroy
If a menu was opened when navigating to a different view, it is
possible that the `menu-open` class was left on the body tag, which
disables the elements on the next side menu view. On side menu destroy,
ensure menu-open was removed from the body class.
2014-08-06 15:24:31 -05:00
Adam Bradley
44fee26436 docs(menuClose): improve menuClose docs 2014-08-06 14:38:50 -05:00
Andrew
7ddb57e60b feat(collectionRepeat): other children of ion-content element fit in
Closes #1920. Closes #1866. Closes #1380.
2014-08-06 10:32:40 -06:00
Adam Bradley
6fbd1a4306 fix(toggle): fix toggle-class attribute
Closes #1851
2014-08-06 08:40:57 -05:00
Perry Govier
53c437e205 fix(ionRadio): fix ng-change being reported before model changes
Closes #1741

BREAKING CHANGE:

ion-radio no longer has an isolate scope.
This will break your radio only if you were relying upon the radio having an isolate scope: if you were referencing `$parent.value` as
the ng-disabled attribute, for example.

Change your code from this:

<ion-radio ng-disabled="{{$parent.isDisabled}}"></ion-radio>

To this:

<ion-radio ng-disabled="{{isDisabled}}"></ion-radio>
2014-08-05 16:42:10 -05:00
Adam Bradley
49a295638d refactor(popup): do not default to focus on first input
Instead of finding a popup element’s first input and focusing on it by
default, only look for the first input with the `autofocus` attribute
added.
2014-08-05 13:58:00 -05:00