From 8d3e5596dcfdcf0147990c5f86c0e3c86abe5941 Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Thu, 10 Dec 2015 16:24:34 +0100 Subject: [PATCH] refactor(playground): remove imports from 'angular2/angular2' Part of #5710 Closes #5798 --- modules/playground/src/animate/animate-app.ts | 7 +++---- modules/playground/src/hash_routing/index.ts | 2 +- modules/playground/src/http/http_comp.ts | 7 +++---- modules/playground/src/jsonp/jsonp_comp.ts | 7 +++---- modules/playground/src/routing/inbox-app.ts | 19 ++++++++++--------- modules/playground/src/routing/index.ts | 2 +- .../playground/src/todo/services/TodoStore.ts | 2 +- modules/playground/src/upgrade/index.ts | 4 ++-- .../src/web_workers/images/index_common.ts | 5 ++--- .../src/web_workers/images/services/bitmap.ts | 2 +- .../playground/src/zippy_component/zippy.ts | 2 +- 11 files changed, 28 insertions(+), 31 deletions(-) diff --git a/modules/playground/src/animate/animate-app.ts b/modules/playground/src/animate/animate-app.ts index d122d9b648..917119ec36 100644 --- a/modules/playground/src/animate/animate-app.ts +++ b/modules/playground/src/animate/animate-app.ts @@ -1,8 +1,7 @@ -import {Component, View, NgIf} from 'angular2/angular2'; +import {Component} from 'angular2/core'; -@Component({selector: 'animate-app'}) -@View({ - directives: [NgIf], +@Component({ + selector: 'animate-app', template: `

The box is {{visible ? 'visible' : 'hidden'}}

diff --git a/modules/playground/src/hash_routing/index.ts b/modules/playground/src/hash_routing/index.ts index 860a8ccc3b..b9c3e9c4c4 100644 --- a/modules/playground/src/hash_routing/index.ts +++ b/modules/playground/src/hash_routing/index.ts @@ -1,4 +1,4 @@ -import {Component, provide} from 'angular2/angular2'; +import {Component, provide} from 'angular2/core'; import {bootstrap} from 'angular2/bootstrap'; import { RouteConfig, diff --git a/modules/playground/src/http/http_comp.ts b/modules/playground/src/http/http_comp.ts index 0718822a20..db5f148c47 100644 --- a/modules/playground/src/http/http_comp.ts +++ b/modules/playground/src/http/http_comp.ts @@ -1,10 +1,9 @@ -import {Component, View, NgFor} from 'angular2/angular2'; +import {Component} from 'angular2/core'; import {Http, Response} from 'angular2/http'; import 'rxjs/add/operator/map'; -@Component({selector: 'http-app'}) -@View({ - directives: [NgFor], +@Component({ + selector: 'http-app', template: `

people