-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2.0' of https://github.com/driftyco/ionic into ins_n_outs
- Loading branch information
Showing
30 changed files
with
180 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,9 @@ | ||
import {ProtoViewRef, ViewContainerRef} from 'angular2/core' | ||
import {Directive, Host, forwardRef} from 'angular2/core'; | ||
|
||
import {App, List} from 'ionic/ionic'; | ||
|
||
import {App} from 'ionic/ionic'; | ||
|
||
|
||
@App({ | ||
templateUrl: 'main.html', | ||
directives: [forwardRef(() => ItemCellTemplate)] | ||
templateUrl: 'main.html' | ||
}) | ||
class E2EApp { | ||
constructor() { | ||
|
||
this.items = [] | ||
for(let i = 0; i < 1000; i++) { | ||
this.items.push({ | ||
title: 'Item ' + i | ||
}) | ||
} | ||
} | ||
} | ||
|
||
|
||
/* | ||
Used to find and register headers in a view, and this directive's | ||
content will be moved up to the common navbar location, and created | ||
using the same context as the view's content area. | ||
*/ | ||
@Directive({ | ||
selector: 'template[cell]' | ||
}) | ||
export class ItemCellTemplate { | ||
constructor(@Host() list: List, viewContainer: ViewContainerRef, protoViewRef: ProtoViewRef) { | ||
console.log('Item cell template', list, viewContainer, protoViewRef); | ||
|
||
this.protoViewRef = protoViewRef; | ||
this.viewContainer = viewContainer; | ||
|
||
list.setItemTemplate(this); | ||
} | ||
// TODO | ||
} |
Oops, something went wrong.