Top "Angular2-directives" questions

Use for questions about Angular 2+ directives

Angular2 way of converting plain text to url (anchor links)

I sometimes have a component that can receive text like this: text www.website.com But I would like to …

angular typescript angular2-routing angular2-template angular2-directives
Use return value of a function as a string in Angular 2

This is the markup I want to place the returned value: <h2>{{getSelectedUserName}}</h2> This is …

angular angular2-directives typescript1.8
Difference between Renderer and ElementRef in angular 2

What is the difference between Renderer and ElementRef? In Angular both are used for DOM Manipulation. I am currently using …

angular angular2-directives elementref angular-renderer2 angular-renderer
Check if user has scrolled to the bottom in Angular 2

What is the best practice to check if user has scrolled to the bottom of the page in Angular2 without …

angular angular2-template angular2-directives
Angular 2 passing parameters to constructor throws DI exception

I'm wanting to setup a string property on a component in my constructor, but when I try something like this @…

angular angular2-directives
Building a wrapper directive (wrap some content / component) in angular2

I'm pretty new building directives with Angular2. What I want is to create a popup directive that will wrap the …

html angular angular2-directives angular-template
Apply styles from parent

Suppose I have a component with this template: <div class="frame"> <span class="user-defined-text">{{text}}</…

css angular angular2-directives
Angular 2 Focus on first invalid input after Click/Event

I have an odd requirement and was hoping for some help. I need to focus on the first found invalid …

javascript angular angular2-forms angular2-directives
Angular 2 Set focus on first field of form on component load

In my app I want to automatically set focus on first field of form on component load. Can anyone please …

angular angular2-template angular2-directives angular2-forms
What is multi provider in angular2

I understand that provider is for getting service from another class but what is multi-provider and token thing? And also …

angular angular2-directives angular2-services angular2-forms