We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8494242 commit 9885e4bCopy full SHA for 9885e4b
src/input/text-input-label.component.ts
@@ -1,4 +1,5 @@
1
import {
2
+ AfterContentInit,
3
AfterViewInit,
4
ChangeDetectorRef,
5
Component,
@@ -102,7 +103,7 @@ import {
102
103
</div>
104
`
105
})
-export class TextInputLabelComponent implements AfterViewInit {
106
+export class TextInputLabelComponent implements AfterViewInit, AfterContentInit {
107
/**
108
* Used to build the id of the input item associated with the `Label`.
109
*/
@@ -210,6 +211,10 @@ export class TextInputLabelComponent implements AfterViewInit {
210
211
}
212
213
214
+ ngAfterContentInit() {
215
+ this.changeDetectorRef.detectChanges();
216
+ }
217
+
218
public isTemplate(value) {
219
return value instanceof TemplateRef;
220
0 commit comments