angular-cn/modules/angular2_material
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
..
src refactor(LifecycleEvent): remove LifecycleEvent 2015-09-05 01:02:33 +00:00
.clang-format chore(material): migrate most components to TypeScript. 2015-05-26 13:35:44 -07:00
README.md feat(material): first ng2 material design components 2015-04-14 16:15:35 -07:00
package.json chore: add repository field to npm package.json files 2015-08-14 18:09:52 +00:00
pubspec.yaml chore: cleanup to pubspec.yaml files 2015-07-17 12:34:06 -07:00

README.md

Temporary home of Material Design components for Angular 2.