elementref Questions
2
I am developing an angular directive that converts dropdownlist to radioListbox.
here is my initial code :
import { Directive, Input, TemplateRef, ViewContainerRef,OnInit } from '@angular/core';
...
Enough asked 8/5, 2018 at 7:47
1
I am developing a mobile application with NativeScript (CLI v5.2.0) Angular (v7.2.3) and I have my @ViewChild ElementRef that was undefined.
I checked the presence of ViewChild and ElementRef in t...
Air asked 15/2, 2019 at 13:21
2
Solved
i have seen many examples of ElemenetRef and TemplateRef which got me more confused.
what is the difference between ElementRef and TemplateRef why we should use one over another
HTML
<ng-te...
Claraclarabella asked 19/11, 2018 at 12:14
1
Solved
I am migrating my project from Ionc3 to Ionic5. I have an ion-textarea which increases the height as user types and it works in Ionic3. Following is the code.
HTML page:
<ion-textarea #hvUserP...
Choler asked 12/4, 2020 at 17:13
1
Solved
I’m working in an angular 6 application. I have a textarea that I’d like to give focus to as soon as the page loads. I’m not able to do so.
Here is what the page looks like:
<div fxLayoutAlign...
Almondeyed asked 29/11, 2018 at 17:33
1
Solved
I have two named templates. I want to apply the height of the first one to the second one whenever the contents of the first one change. I can access both of them using ElementRef inside the compon...
Contradistinction asked 19/3, 2018 at 4:55
1
Solved
I'm trying to create a custom directive to replace the inner text of my custom directive. I can't seem to access the inner text content to apply some logic.
Here's the code:
import { Directive, E...
Columnist asked 20/3, 2018 at 18:4
2
Solved
What is the difference between Renderer and ElementRef? In Angular both are used for DOM Manipulation. I am currently using ElementRef alone for writing Angular 2 directives. If I get more info abo...
Rohrer asked 30/9, 2016 at 6:35
1
© 2022 - 2024 — McMap. All rights reserved.