From 9ba2bd1bff960960ef9238cbcde2b4b1f344fa16 Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Fri, 29 Jan 2016 13:21:04 -0800 Subject: [PATCH] fix(file): remove invalid file An invalid example file was pushed when the PR got merged couple hours ago. Also this cleans up minor things. --- ng-sample/app/app.ts | 2 + .../app/examples/web-images/image-test.ts | 71 ------------------- ng-sample/app/main-page.ts | 2 +- 3 files changed, 3 insertions(+), 72 deletions(-) delete mode 100644 ng-sample/app/examples/web-images/image-test.ts diff --git a/ng-sample/app/app.ts b/ng-sample/app/app.ts index a8f7bce0e..34faafe71 100644 --- a/ng-sample/app/app.ts +++ b/ng-sample/app/app.ts @@ -12,8 +12,10 @@ import { nativeScriptBootstrap } from "./nativescript-angular/application"; //import {Benchmark} from './performance/benchmark'; //import {ListTest} from './examples/list/list-test'; import {ListTestAsync} from "./examples/list/list-test-async"; +// import {ImageTest} from "./examples/image/image-test"; //nativeScriptBootstrap(RendererTest); //nativeScriptBootstrap(Benchmark); //nativeScriptBootstrap(ListTest); nativeScriptBootstrap(ListTestAsync); +// nativeScriptBootstrap(ImageTest); diff --git a/ng-sample/app/examples/web-images/image-test.ts b/ng-sample/app/examples/web-images/image-test.ts deleted file mode 100644 index 549a39a6c..000000000 --- a/ng-sample/app/examples/web-images/image-test.ts +++ /dev/null @@ -1,71 +0,0 @@ -import {Component, Input} from 'angular2/core'; - -class DataItem { - constructor(public id: number, public name: string) { } -} - -@Component({ - selector: 'item-component', - template: ` - - - - - ` -}) -export class ItemComponent { - @Input() data: DataItem; - @Input() odd: boolean; - @Input() even: boolean; - constructor() { } -} - -@Component({ - selector: 'list-test', - directives: [ItemComponent], - template: ` - - - - - - - - - - - - ` - // TEMPLATE WITH COMPONENT - // - - // IN-PLACE TEMPLATE - // -}) -export class ListTest { - public myItems: Array; - - constructor() { - this.myItems = []; - for (var i = 0; i < 30; i++) { - this.myItems.push(new DataItem(i, "data item " + i)); - } - } - - public onItemTap(args) { - console.log("------------------------ ItemTapped: " + args.index); - } -} - diff --git a/ng-sample/app/main-page.ts b/ng-sample/app/main-page.ts index eb1c5b8b3..511d2e9f1 100644 --- a/ng-sample/app/main-page.ts +++ b/ng-sample/app/main-page.ts @@ -20,7 +20,7 @@ export function createPage() { profiling.start('ng-bootstrap'); console.log('BOOTSTRAPPING...'); //bootstrap(Benchmark, []).then((appRef) => { - // bootstrap(RendererTest, []).then((appRef) => { + //bootstrap(RendererTest, []).then((appRef) => { //bootstrap(ListTest, []).then((appRef) => { //bootstrap(ListTestAsync, []).then((appRef) => { bootstrap(ImageTest, []).then((appRef) => {