mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-26 08:13:34 +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