File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed
material-experimental/mdc-tabs Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ import {MatInkBar} from './ink-bar';
50
50
} ,
51
51
} )
52
52
export class MatTabHeader extends _MatTabHeaderBase implements AfterContentInit {
53
- @ContentChildren ( MatTabLabelWrapper ) _items : QueryList < MatTabLabelWrapper > ;
53
+ @ContentChildren ( MatTabLabelWrapper , { descendants : false } ) _items : QueryList < MatTabLabelWrapper > ;
54
54
@ViewChild ( 'tabListContainer' , { static : true } ) _tabListContainer : ElementRef ;
55
55
@ViewChild ( 'tabList' , { static : true } ) _tabList : ElementRef ;
56
56
@ViewChild ( 'nextPaginator' ) _nextPaginator : ElementRef < HTMLElement > ;
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ export class _MatMenuBase implements AfterContentInit, MatMenuPanel<MatMenuItem>
162
162
* @deprecated
163
163
* @breaking -change 8.0.0
164
164
*/
165
- @ContentChildren ( MatMenuItem ) items : QueryList < MatMenuItem > ;
165
+ @ContentChildren ( MatMenuItem , { descendants : false } ) items : QueryList < MatMenuItem > ;
166
166
167
167
/**
168
168
* Menu content that will be rendered lazily.
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export abstract class _MatTabHeaderBase extends MatPaginatedTabHeader implements
88
88
} ,
89
89
} )
90
90
export class MatTabHeader extends _MatTabHeaderBase {
91
- @ContentChildren ( MatTabLabelWrapper ) _items : QueryList < MatTabLabelWrapper > ;
91
+ @ContentChildren ( MatTabLabelWrapper , { descendants : false } ) _items : QueryList < MatTabLabelWrapper > ;
92
92
@ViewChild ( MatInkBar , { static : true } ) _inkBar : MatInkBar ;
93
93
@ViewChild ( 'tabListContainer' , { static : true } ) _tabListContainer : ElementRef ;
94
94
@ViewChild ( 'tabList' , { static : true } ) _tabList : ElementRef ;
Original file line number Diff line number Diff line change 154
154
"properties" : {
155
155
"*" : " ^(?!\\ s*$).+"
156
156
}
157
+ },
158
+ "ContentChildren" : {
159
+ "argument" : 1 ,
160
+ "required" : true ,
161
+ "properties" : {
162
+ "descendants" : " ^(true|false)$"
163
+ }
157
164
}
158
165
}, " src/!(a11y-demo|e2e-app|components-examples|universal-app|dev-app)/**/!(*.spec).ts" ],
159
166
"require-license-banner" : [
You can’t perform that action at this time.
0 commit comments