@@ -4431,8 +4431,8 @@ describe('CdkDrag', () => {
44314431 `
44324432} )
44334433class StandaloneDraggable {
4434- @ViewChild ( 'dragElement' , { static : false } ) dragElement : ElementRef < HTMLElement > ;
4435- @ViewChild ( CdkDrag , { static : false } ) dragInstance : CdkDrag ;
4434+ @ViewChild ( 'dragElement' ) dragElement : ElementRef < HTMLElement > ;
4435+ @ViewChild ( CdkDrag ) dragInstance : CdkDrag ;
44364436 startedSpy = jasmine . createSpy ( 'started spy' ) ;
44374437 endedSpy = jasmine . createSpy ( 'ended spy' ) ;
44384438 releasedSpy = jasmine . createSpy ( 'released spy' ) ;
@@ -4449,8 +4449,8 @@ class StandaloneDraggable {
44494449 `
44504450} )
44514451class StandaloneDraggableWithOnPush {
4452- @ViewChild ( 'dragElement' , { static : false } ) dragElement : ElementRef < HTMLElement > ;
4453- @ViewChild ( CdkDrag , { static : false } ) dragInstance : CdkDrag ;
4452+ @ViewChild ( 'dragElement' ) dragElement : ElementRef < HTMLElement > ;
4453+ @ViewChild ( CdkDrag ) dragInstance : CdkDrag ;
44544454}
44554455
44564456@Component ( {
@@ -4463,7 +4463,7 @@ class StandaloneDraggableWithOnPush {
44634463 `
44644464} )
44654465class StandaloneDraggableSvg {
4466- @ViewChild ( 'dragElement' , { static : false } ) dragElement : ElementRef < SVGElement > ;
4466+ @ViewChild ( 'dragElement' ) dragElement : ElementRef < SVGElement > ;
44674467}
44684468
44694469@Component ( {
@@ -4475,10 +4475,10 @@ class StandaloneDraggableSvg {
44754475 `
44764476} )
44774477class StandaloneDraggableWithHandle {
4478- @ViewChild ( 'dragElement' , { static : false } ) dragElement : ElementRef < HTMLElement > ;
4479- @ViewChild ( 'handleElement' , { static : false } ) handleElement : ElementRef < HTMLElement > ;
4480- @ViewChild ( CdkDrag , { static : false } ) dragInstance : CdkDrag ;
4481- @ViewChild ( CdkDragHandle , { static : false } ) handleInstance : CdkDragHandle ;
4478+ @ViewChild ( 'dragElement' ) dragElement : ElementRef < HTMLElement > ;
4479+ @ViewChild ( 'handleElement' ) handleElement : ElementRef < HTMLElement > ;
4480+ @ViewChild ( CdkDrag ) dragInstance : CdkDrag ;
4481+ @ViewChild ( CdkDragHandle ) handleInstance : CdkDragHandle ;
44824482}
44834483
44844484@Component ( {
@@ -4493,8 +4493,8 @@ class StandaloneDraggableWithHandle {
44934493 `
44944494} )
44954495class StandaloneDraggableWithDelayedHandle {
4496- @ViewChild ( 'dragElement' , { static : false } ) dragElement : ElementRef < HTMLElement > ;
4497- @ViewChild ( 'handleElement' , { static : false } ) handleElement : ElementRef < HTMLElement > ;
4496+ @ViewChild ( 'dragElement' ) dragElement : ElementRef < HTMLElement > ;
4497+ @ViewChild ( 'handleElement' ) handleElement : ElementRef < HTMLElement > ;
44984498 showHandle = false ;
44994499}
45004500
@@ -4513,8 +4513,8 @@ class StandaloneDraggableWithDelayedHandle {
45134513 `
45144514} )
45154515class StandaloneDraggableWithIndirectHandle {
4516- @ViewChild ( 'dragElement' , { static : false } ) dragElement : ElementRef < HTMLElement > ;
4517- @ViewChild ( 'handleElement' , { static : false } ) handleElement : ElementRef < HTMLElement > ;
4516+ @ViewChild ( 'dragElement' ) dragElement : ElementRef < HTMLElement > ;
4517+ @ViewChild ( 'handleElement' ) handleElement : ElementRef < HTMLElement > ;
45184518}
45194519
45204520
@@ -4538,7 +4538,7 @@ class StandaloneDraggableWithIndirectHandle {
45384538 `
45394539} )
45404540class StandaloneDraggableWithMultipleHandles {
4541- @ViewChild ( 'dragElement' , { static : false } ) dragElement : ElementRef < HTMLElement > ;
4541+ @ViewChild ( 'dragElement' ) dragElement : ElementRef < HTMLElement > ;
45424542 @ViewChildren ( CdkDragHandle ) handles : QueryList < CdkDragHandle > ;
45434543}
45444544
@@ -4566,7 +4566,7 @@ const DROP_ZONE_FIXTURE_TEMPLATE = `
45664566@Component ( { template : DROP_ZONE_FIXTURE_TEMPLATE } )
45674567class DraggableInDropZone {
45684568 @ViewChildren ( CdkDrag ) dragItems : QueryList < CdkDrag > ;
4569- @ViewChild ( CdkDropList , { static : false } ) dropInstance : CdkDropList ;
4569+ @ViewChild ( CdkDropList ) dropInstance : CdkDropList ;
45704570 items = [
45714571 { value : 'Zero' , height : ITEM_HEIGHT , margin : 0 } ,
45724572 { value : 'One' , height : ITEM_HEIGHT , margin : 0 } ,
@@ -4676,7 +4676,7 @@ const HORIZONTAL_FIXTURE_TEMPLATE = `
46764676} )
46774677class DraggableInHorizontalDropZone {
46784678 @ViewChildren ( CdkDrag ) dragItems : QueryList < CdkDrag > ;
4679- @ViewChild ( CdkDropList , { static : false } ) dropInstance : CdkDropList ;
4679+ @ViewChild ( CdkDropList ) dropInstance : CdkDropList ;
46804680 items = [
46814681 { value : 'Zero' , width : ITEM_WIDTH , margin : 0 } ,
46824682 { value : 'One' , width : ITEM_WIDTH , margin : 0 } ,
@@ -4736,7 +4736,7 @@ class DraggableInScrollableHorizontalDropZone extends DraggableInHorizontalDropZ
47364736 `
47374737} )
47384738class DraggableInDropZoneWithCustomPreview {
4739- @ViewChild ( CdkDropList , { static : false } ) dropInstance : CdkDropList ;
4739+ @ViewChild ( CdkDropList ) dropInstance : CdkDropList ;
47404740 @ViewChildren ( CdkDrag ) dragItems : QueryList < CdkDrag > ;
47414741 items = [ 'Zero' , 'One' , 'Two' , 'Three' ] ;
47424742 boundarySelector : string ;
@@ -4762,7 +4762,7 @@ class DraggableInDropZoneWithCustomPreview {
47624762 `
47634763} )
47644764class DraggableInDropZoneWithCustomTextOnlyPreview {
4765- @ViewChild ( CdkDropList , { static : false } ) dropInstance : CdkDropList ;
4765+ @ViewChild ( CdkDropList ) dropInstance : CdkDropList ;
47664766 @ViewChildren ( CdkDrag ) dragItems : QueryList < CdkDrag > ;
47674767 items = [ 'Zero' , 'One' , 'Two' , 'Three' ] ;
47684768}
@@ -4956,9 +4956,9 @@ class ConnectedDropZonesViaGroupDirective extends ConnectedDropZones {
49564956 `
49574957} )
49584958class DraggableWithAlternateRoot {
4959- @ViewChild ( 'dragElement' , { static : false } ) dragElement : ElementRef < HTMLElement > ;
4960- @ViewChild ( 'dragRoot' , { static : false } ) dragRoot : ElementRef < HTMLElement > ;
4961- @ViewChild ( CdkDrag , { static : false } ) dragInstance : CdkDrag ;
4959+ @ViewChild ( 'dragElement' ) dragElement : ElementRef < HTMLElement > ;
4960+ @ViewChild ( 'dragRoot' ) dragRoot : ElementRef < HTMLElement > ;
4961+ @ViewChild ( CdkDrag ) dragInstance : CdkDrag ;
49624962 rootElementSelector : string ;
49634963}
49644964
@@ -5017,9 +5017,9 @@ class ConnectedDropZonesWithSingleItems {
50175017 `
50185018} )
50195019class NestedDropListGroups {
5020- @ViewChild ( 'group' , { static : false } ) group : CdkDropListGroup < CdkDropList > ;
5021- @ViewChild ( 'listOne' , { static : false } ) listOne : CdkDropList ;
5022- @ViewChild ( 'listTwo' , { static : false } ) listTwo : CdkDropList ;
5020+ @ViewChild ( 'group' ) group : CdkDropListGroup < CdkDropList > ;
5021+ @ViewChild ( 'listOne' ) listOne : CdkDropList ;
5022+ @ViewChild ( 'listTwo' ) listTwo : CdkDropList ;
50235023}
50245024
50255025
@@ -5044,7 +5044,7 @@ class DraggableOnNgContainer {}
50445044} )
50455045class DraggableInDropZoneWithoutEvents {
50465046 @ViewChildren ( CdkDrag ) dragItems : QueryList < CdkDrag > ;
5047- @ViewChild ( CdkDropList , { static : false } ) dropInstance : CdkDropList ;
5047+ @ViewChild ( CdkDropList ) dropInstance : CdkDropList ;
50485048 items = [
50495049 { value : 'Zero' , height : ITEM_HEIGHT } ,
50505050 { value : 'One' , height : ITEM_HEIGHT } ,
@@ -5184,8 +5184,8 @@ class WrappedDropContainerComponent {
51845184 </div>`
51855185} )
51865186class NestedDragsComponent {
5187- @ViewChild ( 'container' , { static : false } ) container : ElementRef ;
5188- @ViewChild ( 'item' , { static : false } ) item : ElementRef ;
5187+ @ViewChild ( 'container' ) container : ElementRef ;
5188+ @ViewChild ( 'item' ) item : ElementRef ;
51895189
51905190 containerDragStartedSpy = jasmine . createSpy ( 'container drag started spy' ) ;
51915191 containerDragMovedSpy = jasmine . createSpy ( 'container drag moved spy' ) ;
@@ -5215,8 +5215,8 @@ class NestedDragsComponent {
52155215} )
52165216class NestedDropZones {
52175217 @ViewChildren ( CdkDrag ) dragItems : QueryList < CdkDrag > ;
5218- @ViewChild ( 'outerList' , { static : false } ) outerList : ElementRef < HTMLElement > ;
5219- @ViewChild ( 'innerList' , { static : false } ) innerList : ElementRef < HTMLElement > ;
5218+ @ViewChild ( 'outerList' ) outerList : ElementRef < HTMLElement > ;
5219+ @ViewChild ( 'innerList' ) innerList : ElementRef < HTMLElement > ;
52205220 items = [ 'Zero' , 'One' , 'Two' , 'Three' ] ;
52215221}
52225222
0 commit comments