Top "Angular2-template" questions

For questions referencing Angular Template Syntax including: interpolation, input(property) bindings, output(event) bindings, two-way binding, local variables, star syntax, etc.

How to add style class to p-dataTable row

We're using p-dataTable from PrimeNG 1.0.0-beta.16 I want to add a style to the row when a value is true. …

angular angular2-template primeng
how to use parent module component in child module component in angular2

I have header that should be used in both child and parent module.that was imported and used in parent …

angular components angular2-template
How to create Right side Navbar with md-sidenav in Angular Material - Angular 2

I am trying to create "right navbar" with angular material 2 md-sidenav. No matter what I do, it is always coming …

angular angular2-template angular-material2
Angular 2 Read More Directive

I need to build a readmore directive in Angular2. What this directive will do is for collapse and expand long …

angular angular2-template angular2-directives
Is it possible to add a dynamic class to host in Angular 2?

I know that in Angular2 I can add a class 'red' to a component's selector element by doing this: @Component({ …

angular angular2-template
Angular 2 prevent click on parent when clicked on child

I have a click event nested one level. When i click on the child the expected function is called but …

angular angular2-template
One Component Multiple Templates based on Condition

So here's the deal. I have a component thats very well written and being used in a lot of places. …

angular angular2-template angular2-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
Angular2 - Interpolate string with html

How to Interpolate string with html using angular2. i know in angular 1.x there is $interpolate(templateString)(miniScope); but i …

angular angular2-template
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