Commit Graph

108 Commits

Author SHA1 Message Date
Perry Govier
cc18a64bf4 fix(reorder): item click handlers dont fire when tapping on reorder icon 2014-08-19 11:32:35 -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
8c6d5f2c96 fix(collectionRepeat): simplify item reusing process to fix rare reuse error
Closes #1777.
2014-08-13 10:30:44 -06:00
Andrew
5e025fbb01 fix(collectionRepeat): rerender when $ionicScrollDelegate resizes
Fixes #1777
2014-08-11 10:23:49 -04: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
Andrew
41a2124d45 test(): fix phantomjs test problems for CircleCI 2014-08-06 12:10:34 -06: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
ae87c66b12 fix(popup): backdrop release fires with every close 2014-08-05 11:16:46 -05:00
Max Lynch
64641b1be0 fix(viewService): No error on clearHistory for empty history 2014-08-04 14:17:54 -05:00
Adam Bradley
c1215aa300 feat(popover): created popovers 2014-07-31 14:43:29 -05:00
Perry Govier
ddda809b57 feat(tabs): Expand striped android style tab functionality. Closes 1694 2014-07-30 15:52:53 -05:00
Perry Govier
4f6d02cfcb refactor(modal): trigger resize event on the window when modal opens
A better approach to resolving an issue with collection-repeat sizing itself properly. This keeps directives independent of eachother.
2014-07-24 14:45:40 -05:00
Perry Govier
1fbd3c5632 fix(collectionRepeat): properly display collection repeat inside a modal 2014-07-24 12:44:29 -05:00
Perry Govier
4e6ba5b818 refactor(scroll): minor tweak to make unit tests happy 2014-07-24 12:27:42 -05:00
Andrew
74711cbc36 test(): remove iit 2014-07-24 11:15:50 -06:00
Andrew
79bcfb149f test(gesture): fix gesture directive tests 2014-07-24 11:15:26 -06:00
Perry Govier
3d0a46efe8 fix(scroll): anchor scroll should scroll to IDs that are multiple levels beneath the scroll view. Closes #1804 2014-07-21 14:58:29 -05:00
Andrew
26ca840dfc feat($ionicLoading): add $ionicLoadingConfig constant for default options
Closes #1800
2014-07-21 08:22:43 -06:00
Andrew
7e20424a87 test(platform): fix unit tests for setting platform to null 2014-07-21 08:22:07 -06:00
Andrew
537b29d0bb fix(toggle): fix ngChange being reported before model changes
Closes #1349, #1741

BREAKING CHANGE:

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

Change your code from this:

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

To this:

<ion-toggle ng-disabled="{{isDisabled}}"></ion-toggle>
2014-07-10 23:51:55 -06:00
Perry Govier
bb6976ad54 feat(tab): options 'hidden' attribute for tabs. Closes #1666, #1673 2014-07-09 17:10:43 -05:00
Andrew
4f10a72306 fix(list): make reorder/delete button animation work well on all devices 2014-07-08 11:32:43 -06:00
Andrew
b7f45e7ca5 fix(view): don't affect history when inside a modal
Closes #1667
2014-07-07 13:38:28 -06:00
Andrew
da8a24d174 test(ionList): remove tap-disabled from tests 2014-07-07 13:17:19 -06:00
Andrew
cdba48f196 fix(navBar): only add default animation if there is no custom animation
Closes #1671
2014-07-07 11:40:21 -06:00
Andrew
22a81fe82c test(list): use timeout.flush() 2014-07-06 14:29:33 -06:00
Perry Govier
7630bd419f fix(loading): Prevent clicks on modal views when loading is active. Closes #1720 2014-07-03 16:16:21 -05:00
Perry Govier
704fe402e7 fix(radio): suport ng-disabled. Closes #1684 2014-06-27 15:58:17 -05:00
Perry Govier
3e6ce1831b fix(popup): if popup is taller than the window, shrink the popup body and make it scrollable. Closes #1679 2014-06-27 11:27:06 -05:00
Andrew Joslin
b2585f19ca fix(collectionRepeat): fix scroll when item bigger than viewport
Closes #1621
2014-06-17 17:42:10 +00:00
Andrew Joslin
b4b94073d5 fix(gestureDirectives): fix problem with event being passed in 2014-06-17 13:16:31 +00:00
Andrew Joslin
22053edb46 test(navBackButton): disable android platform test 2014-06-12 15:01:05 -06:00
Andrew Joslin
bea69fe46c amend(platform-backButton): do not set icon if icon child exists 2014-06-12 09:23:30 -06:00
Andrew Joslin
cec3a42236 fix(ionNavBackButton): stop flicker when pressing back on ios 2014-06-11 16:07:38 -06:00
Max Lynch
c30be67f65 feat(platforms): Android and iOS Specific Styles and Transitions 2014-06-11 16:48:53 -05:00
Andrew Joslin
087e55f320 feat($ionicActionSheet): add cancelOnStateChange option, default true
Closes #1318

BREAKING CHANGE: $ionicActionSheet's default behavior is now to cancel
when the app's state changes.  To disable this behavior, pass
`cancelOnStateChange: false` into $ionicActionSheet.show().
2014-06-11 11:28:53 -06:00
Andrew Joslin
a034561516 amend(ionTab): fix tests for class attribute 2014-06-11 08:49:17 -06:00
Andrew Joslin
30a3c8e0c8 fix(collectionRepeat): remove elements at correct time when leaving page 2014-06-11 08:43:00 -06:00
Julien Goux
e6f79cc0ff feat(ionTab): add class attribute to tab items 2014-06-11 08:36:36 -06:00
Andrew Joslin
6af5d68da4 feat(collectionRepeat): huge optimization upgrades
Closes #1597
2014-06-10 17:56:35 -06:00
Andrew Joslin
8c36a667d8 test(actionSheet): fix test for angular v1.2.17 2014-06-10 15:27:48 -06:00
Andrew Joslin
b7646a5630 fix($ionicActionSheet): stop memory leak due to hidden element staying in dom
BREAKING CHANGE: $ionicActionSheet now returns a method to hide the
action sheet.

Previously, it returned an object that had a `show` and `hide` method.
This was undocumented, but if you used it, here is how to migrate your
code:

Change your code from this:

```js
var sheet = $ionicActionSheet.show({...});
sheet.hide();
```

To this:

```js
var hideSheet = $ionicActionSheet.show({...});
hideSheet();
```
2014-06-06 13:45:38 -04:00
Andrew Joslin
9942045fb2 amend($ionicModal): if hardwareBackButtonClose false, back button is noop
Addresses #1397
2014-06-05 07:29:39 -06:00
Andrew Joslin
00c80e8557 feat(ionScroll): add has-bouncing=true/false attribute
Closes #1573. Closes #1367.
2014-06-04 14:14:31 -06:00
Andrew Joslin
f5f5851b2e fix(ionItem): make target attribute work properly
Closes #1521
2014-06-04 14:03:44 -06:00
Andrew Joslin
9ffca1e4eb feat($ionicModal): add hardwareBackButtonClose as option, default true
Closes #1397
2014-06-04 13:45:21 -06:00
Andrew Joslin
979f7b5275 fix(ionRefresher): be sure to run on-refresh with an angular digest
Closes #1465
2014-05-22 10:18:52 -06:00