From adc0e32cff5fdb4ee929ec5586691f63452bdeb7 Mon Sep 17 00:00:00 2001 From: vsavkin Date: Wed, 4 Nov 2015 11:49:55 -0800 Subject: [PATCH] refactor(examples): update the Zippy example to rely on ambient directives --- modules/playground/pubspec.yaml | 1 + modules/playground/src/zippy_component/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/playground/pubspec.yaml b/modules/playground/pubspec.yaml index 282b055e36..2ba589070b 100644 --- a/modules/playground/pubspec.yaml +++ b/modules/playground/pubspec.yaml @@ -17,6 +17,7 @@ dependency_overrides: path: ../angular2_material transformers: - angular2: + ambient_directives: 'angular2/lib/src/core/directives.dart:CORE_DIRECTIVES' entry_points: - web/src/gestures/index.dart - web/src/hello_world/index.dart diff --git a/modules/playground/src/zippy_component/index.ts b/modules/playground/src/zippy_component/index.ts index 4dca67909a..4db5d22cf2 100644 --- a/modules/playground/src/zippy_component/index.ts +++ b/modules/playground/src/zippy_component/index.ts @@ -1,5 +1,5 @@ import {bootstrap} from 'angular2/bootstrap'; -import {Component, View, NgFor} from 'angular2/core'; +import {Component, View} from 'angular2/core'; import {Zippy} from './zippy'; @Component({selector: 'zippy-app'}) @@ -12,7 +12,7 @@ import {Zippy} from './zippy';
  • {{log}}
  • `, - directives: [Zippy, NgFor] + directives: [Zippy] }) class ZippyApp { logs: string[] = [];