Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Component({
- selector: 'my-custom-input',
- templateUrl: 'src/my-custom-input.component.html',
- styleUrls:['src/my-custom-input.component.css']
- })
- export class MyCustomInput implements AfterContentInit {
- @Input() label;
- @ContentChild(InputReference) // not using 'input' selector here
- injectedInput: InputReference; // not of type HTMLInputElement anymore
- constructor() {
- }
- ngAfterContentInit(){
- console.log('*************');
- console.log('injectedInput:', this.injectedInput);
- console.log('*************');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement