File tree Expand file tree Collapse file tree 3 files changed +35
-16
lines changed
src/lib/schematics/update Expand file tree Collapse file tree 3 files changed +35
-16
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,19 @@ export const propertyNames: VersionChanges<MaterialPropertyNameData> = {
34
34
}
35
35
}
36
36
]
37
+ } ,
38
+
39
+ {
40
+ pr : 'https://github.com/angular/material2/pull/12927' ,
41
+ changes : [
42
+ {
43
+ replace : 'flexibleDiemsions' ,
44
+ replaceWith : 'flexibleDimensions' ,
45
+ whitelist : {
46
+ classes : [ 'CdkConnectedOverlay' ]
47
+ }
48
+ }
49
+ ]
37
50
}
38
51
] ,
39
52
@@ -353,19 +366,5 @@ export const propertyNames: VersionChanges<MaterialPropertyNameData> = {
353
366
}
354
367
]
355
368
} ,
356
-
357
- // TODO(devversion): this should be part of the V6 to V7 upgrade
358
- {
359
- pr : 'https://github.com/angular/material2/pull/12927' ,
360
- changes : [
361
- {
362
- replace : 'flexibleDiemsions' ,
363
- replaceWith : 'flexibleDimensions' ,
364
- whitelist : {
365
- classes : [ 'CdkConnectedOverlay' ]
366
- }
367
- }
368
- ]
369
- }
370
369
]
371
370
} ;
Original file line number Diff line number Diff line change @@ -4,15 +4,25 @@ class SelectionModel {
4
4
onChange = new EventEmitter < void > ( ) ;
5
5
}
6
6
7
+ class CdkConnectedOverlay {
8
+ flexibleDiemsions : boolean ;
9
+ }
10
+
7
11
/* Actual test case using the previously defined definitions. */
8
12
9
13
class A implements OnInit {
10
14
self = { me : this } ;
11
15
12
- constructor ( private a : SelectionModel ) { }
16
+ constructor ( private a : SelectionModel , private b : CdkConnectedOverlay ) { }
13
17
14
18
ngOnInit ( ) {
15
19
this . a . changed . subscribe ( ( ) => console . log ( 'Changed' ) ) ;
16
20
this . self . me . a . changed . subscribe ( ( ) => console . log ( 'Changed 2' ) ) ;
21
+
22
+ if ( this . b . flexibleDimensions ) {
23
+ console . log ( this . b . flexibleDimensions ? 'true' : 'false' ) ;
24
+ }
25
+
26
+ const _state = this . self . me . b . flexibleDimensions . toString ( ) || 'not-defined' ;
17
27
}
18
28
}
Original file line number Diff line number Diff line change @@ -4,15 +4,25 @@ class SelectionModel {
4
4
onChange = new EventEmitter < void > ( ) ;
5
5
}
6
6
7
+ class CdkConnectedOverlay {
8
+ flexibleDiemsions : boolean ;
9
+ }
10
+
7
11
/* Actual test case using the previously defined definitions. */
8
12
9
13
class A implements OnInit {
10
14
self = { me : this } ;
11
15
12
- constructor ( private a : SelectionModel ) { }
16
+ constructor ( private a : SelectionModel , private b : CdkConnectedOverlay ) { }
13
17
14
18
ngOnInit ( ) {
15
19
this . a . onChange . subscribe ( ( ) => console . log ( 'Changed' ) ) ;
16
20
this . self . me . a . onChange . subscribe ( ( ) => console . log ( 'Changed 2' ) ) ;
21
+
22
+ if ( this . b . flexibleDiemsions ) {
23
+ console . log ( this . b . flexibleDiemsions ? 'true' : 'false' ) ;
24
+ }
25
+
26
+ const _state = this . self . me . b . flexibleDiemsions . toString ( ) || 'not-defined' ;
17
27
}
18
28
}
You can’t perform that action at this time.
0 commit comments