angular-cn/modules/examples
Victor Berchet 8302afffb4 refactor(LifecycleEvent): remove LifecycleEvent
fixes #3924

BREAKING CHANGE

The `lifecycle` configuration for directive has been dropped.

Before

    // Dart
    @Component({lifecycle: const [LifecycleEvent.OnChanges], ...})
    class MyComponent implements OnChanges {
      void onChanges() {...}
    }

    // Typescript
    @Component({lifecycle: [LifecycleEvent.OnChanges], ...})
    class MyComponent implements OnChanges {
      onChanges(): void {...}
    }

    // ES5
    var MyComponent = ng.
    Component({lifecycle: [LifecycleEvent.OnChanges], ...}).
    Class({
      onChanges: function() {...}
    });

After

    // Dart
    @Component({...})
    class MyComponent implements OnChanges {
      void onChanges() {...}
    }

    // Typescript
    @Component({...})
    class MyComponent implements OnChanges {
      onChanges(): void {...}
    }

    // ES5
    var MyComponent = ng
      .Component({...})
      .Class({
        onChanges: function() {
        }
      });
2015-09-05 01:02:33 +00:00
..
e2e_test refactor(LifecycleEvent): remove LifecycleEvent 2015-09-05 01:02:33 +00:00
src refactor: add leading underscore to private fields 2015-09-05 00:54:50 +00:00
test/benchpress style(dart): Format with dartfmt v0.2.0 2015-08-05 11:04:29 -07:00
pubspec.yaml fix(WebWorker): Fix Todo Server demo and add test to ensure the demo can bootstrap. 2015-09-03 18:52:06 +00:00