mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(): remove use of @View
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {Component, Directive, View, ElementRef, NgIf, Host, Optional, Renderer} from 'angular2/angular2';
|
||||
import {Component, Directive, ElementRef, NgIf, Host, Optional, Renderer} from 'angular2/angular2';
|
||||
|
||||
import {Gesture} from 'ionic/gestures/gesture';
|
||||
import {DragGesture} from 'ionic/gestures/drag-gesture';
|
||||
@@ -32,17 +32,15 @@ import {CSS, raf} from 'ionic/util/dom';
|
||||
selector: 'ion-item-sliding,[ion-item-sliding]',
|
||||
inputs: [
|
||||
'sliding'
|
||||
]
|
||||
})
|
||||
@View({
|
||||
],
|
||||
template:
|
||||
'<ng-content select="ion-item-options"></ng-content>' +
|
||||
'<ion-item-sliding-content>' +
|
||||
'<ion-item-content>' +
|
||||
'<ng-content></ng-content>'+
|
||||
'</ion-item-content>' +
|
||||
'<ng-content select="[item-right]"></ng-content>' +
|
||||
'</ion-item-sliding-content>',
|
||||
'<ng-content select="ion-item-options"></ng-content>' +
|
||||
'<ion-item-sliding-content>' +
|
||||
'<ion-item-content>' +
|
||||
'<ng-content></ng-content>'+
|
||||
'</ion-item-content>' +
|
||||
'<ng-content select="[item-right]"></ng-content>' +
|
||||
'</ion-item-sliding-content>',
|
||||
directives: [NgIf]
|
||||
})
|
||||
export class ItemSliding {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Component, View, ElementRef, Renderer} from 'angular2/angular2';
|
||||
import {Component, ElementRef, Renderer} from 'angular2/angular2';
|
||||
|
||||
|
||||
/**
|
||||
@@ -18,9 +18,7 @@ import {Component, View, ElementRef, Renderer} from 'angular2/angular2';
|
||||
* ```
|
||||
*/
|
||||
@Component({
|
||||
selector: 'ion-item,[ion-item]'
|
||||
})
|
||||
@View({
|
||||
selector: 'ion-item,[ion-item]',
|
||||
template:
|
||||
'<ng-content select="[item-left]"></ng-content>' +
|
||||
'<ng-content select="[item-right]"></ng-content>' +
|
||||
|
||||
Reference in New Issue
Block a user