mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
alpha34
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import {ProtoViewRef, ViewContainerRef} from 'angular2/angular2'
|
||||
import {Directive, Ancestor, forwardRef} from 'angular2/angular2';
|
||||
import {Directive, Host, forwardRef} from 'angular2/angular2';
|
||||
|
||||
import {App, List} from 'ionic/ionic';
|
||||
|
||||
@@ -31,7 +31,7 @@ class IonicApp {
|
||||
selector: 'template[cell]'
|
||||
})
|
||||
export class ItemCellTemplate {
|
||||
constructor(@Ancestor() list: List, viewContainer: ViewContainerRef, protoViewRef: ProtoViewRef) {
|
||||
constructor(@Host() list: List, viewContainer: ViewContainerRef, protoViewRef: ProtoViewRef) {
|
||||
console.log('Item cell template', list, viewContainer, protoViewRef);
|
||||
|
||||
this.protoViewRef = protoViewRef;
|
||||
|
||||
Reference in New Issue
Block a user