I'm trying to create a carousel component that has n amount of child components based on whatever size list it will get. I want the parent (carousel) ...
I'm trying to create a carousel component that has n amount of child components based on whatever size list it will get. I want the parent (carousel) ...
I am trying to create a custom directive that will allow me to read a template from a json / ts object and insert it in my directive template. For ex ...
I have two HTML elements below, I know I can access the first P element with the template reference with renderer2 but I am not sure how I access t ...
I have a directive that replaces a table value with an "a href" using renderer.setProperty. Attached to the "a href" is a "click" property which im n ...
Currently I have an Angular component that appends a list of script tags into the DOM with Renderer2 library, the code of these scripts is retrieved f ...
This is my html code: This is my code in the .ts file With this code I would like to add a <p> tag to my <div id="gameboard">. Every ...
I have a directive that implements a slider when you hover the element, If you visit this site when you hover the image the directive makes other imag ...
Description I want to create and control a Material ProgressBar from within a directive. Problem I can't update the ProgressBar's value property (t ...
I want to dynamically create an element and then get its clientWidth. The code snippet looks like this using the regular DOM API. HTML Snippet: Th ...
I am trying to use ViewChild like this: This is the template: But, the ViewChild annotation is showing this error: Making the target ES5 is n ...
How do I render an SVG (which I have locally stored in my project) using Renderer2 in Angular? I tried doing it like following: But it actually go ...
I have a directive that uses Element Ref and Renderer 2 to style the element. I wanted to know how can I style placeholder using renderer or any other ...
I am trying to create a chat-based application where I am creating each type of chat popup according to requirements and using Angular Renderer2. I tr ...
I am having trouble getting the correct values for a small custom context menu. When setting the styles via ngStyle. When doing it like below the comp ...
I would like to use a mat-slider with a thumblabel that doesn't move along with the slider when it is moved. The way I see it the entire 'mat-slider-t ...
I am trying to select all pre elements in an angular component AFTER the document has been loaded. ngAFterViewChecked, ngAfterContentChecked, ngAfter ...
Angular's renderer2 will not apply linear-gradient CSS. Can anyone see what I'm missing? Here is a stackblitz repro ...
I have found an example online of a Tooltip directive. I need to expand it so I can pass data to the tooltip and render it in an *ngFor. So far I have ...
How can I add separate CSS for one page in Angular? This is the CSS I need, as per How to remove the URL from the printing page?: But putting CSS ...
I want to append new child node after the parent node but appendChild appends it inside of it. Here is what I have: My component.html: My componen ...