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.

Handle @Input and @Output for dynamically created Component in Angular 2

How to handle/provide @Input and @Output properties for dynamically created Components in Angular 2? The idea is to dynamically create (…

javascript angular angular2-routing angular2-template
Concat classname with variable Angular 2

I want something like class = "myClass {{classVar}}" I am trying to concat class name with variable value in scope but …

angular angular2-template classname
Retain data on page reload in Angular 2

In my Angular 2 app, I pass in some data to a PageComponent from my HomeComponent which is then saved to …

angular angular2-template angular2-components
Angular 2 Pipe ShortDate on NGX Data Table

I would like to format a date column as a short date in Angular 2 NGX Datatable. Here is the HTML: &…

angular angular2-template angular2-pipe ngx-datatable
How to iterate form array(array in array in array) in angular2 reactive forms?

I tried to Iterate formArray several times, This is plunker link for this case https://plnkr.co/edit/4kiJF7cL5…

angular angular2-template angular2-forms angular2-formbuilder
using ng-content in ng-template

Is it possible to use <ng-content> (and its select option) inside a <ng-template> or does it …

angular angular2-template
PrimeNG TurboTable sortable column sort indicator?

I'm trying to transition an existing PrimeNG Datatable over to the newly-released TurboTable spec, and I've been able to get …

sorting angular2-template primeng primeng-turbotable
How to print object properties in template in Angular2

I am new to angular2, And trying to bind object result to the html template. I am able to get …

angular angular2-template angular2-forms angular2-services angularjs-templates
Populating a child router-outlet Angular2

Since I heard Angular's Router supports nested <router-outlet> tags, I'm trying to use two of them. I"m …

angular angular2-routing router angular2-template
How to instantiate and apply directives programmatically?

I know that in ng2 we have ComponentFactoryResolver that can resolve factories that we can apply to a ViewContainerRef. But, …

angular projection angular-directive angular2-template