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 do I combine a template reference variable with ngIf?

<div *ngIf="true" myHighlight #tRefVar="myHighlight"></div> <div>tRefVar is {{tRefVar.foo}}</div&…

angular angular2-template
Changing router-outlet with *ngIf in app.component.html in angular2

I am using angular 2.0 final. I am trying to change the location of the router-outlet in the main app.component.…

angular angular2-routing angular2-template
Type checking in Angular 2 templates

We are building an application in Angular 2 and TypeScript. We try to statically check types where it is possible. Is …

angular typescript angular2-template
Angular 2 animate *ngFor list item one after other using new Animation support in RC 5

I have a component that fetches list of items from server and then display that list using *ngFor in template. …

angular typescript angular2-template angular2-services
p-dialog onHide not working in angular 2 component - primeng

I'm using primeng in an angular 2 application and facing this issue (stackoverflow question) Although the plunkr provided in the accepted …

angular angular2-template primeng
How to make vis.js lib to work with Angular2?

I'm trying to use a visjs lib but can't make their getting started example working it goes like this: <…

angular angular2-template vis.js vis.js-timeline
Angular4 ng-content gets built when ngIf is false

I have a problem with the new ng-content transclusion. Let's say I have a component my-component that, in its ngOnInit() …

html angular typescript angular2-template
Angular 2 - Refresh ngx-datatable list issue

I'm working on an Angular 2 project. I use ngx-datatable to display a list of users: <ngx-datatable class="material" [rows]="…

angular angular2-template ngx-datatable
Passing context to template through ngOutletContext in Angular2

I have a component to which I am passing a template. Inside of this component I would like to pass …

javascript angular typescript angular2-template angular2-directives
There is no directive with "exportAs" set to "bs-modal" when using ng2-bootstrap

I am following the example given here https://valor-software.com/ng2-bootstrap/#/modals But when i put the template in …

angularjs angular typescript angular2-template ng2-bootstrap