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.

Angular HTML binding

I am writing an Angular application and I have an HTML response I want to display. How do I do …

angular angular2-template angular2-databinding
OrderBy pipe issue

I'm not able to translate this code from Angualr 1 to Angular 2: ng-repeat="todo in todos | orderBy: 'completed'" This is what …

angular angular2-template angular-pipe
Angular2 disable button

I know that in angular2 I can disable a button with the [disable] attribute, for example: <button [disabled]="!isValid" (…

html angular angular2-template angular2-forms
Angular2 *ngIf check object array length in template

Refered to https://angular.io/docs/ts/latest/guide/displaying-data.html and stack How to check empty object in angular 2 …

angular angular2-template
Angular 2: Can't bind to 'ngModel' since it isn't a known property of 'input'

I'm trying to implement Dynamic Forms in Angular 2. I've added additional functionalities like Delete and Cancel to the dynamic forms. …

forms angular angular2-template angular2-forms
Angular 2: How to write a for loop, not a foreach loop

Using Angular 2, I want to duplicate a line in a template multiple times. Iterating over an object is easy, *ngFor="…

angular angular2-template
Angular 2 Scroll to top on Route Change

In my Angular 2 app when I scroll down a page and click the link at the bottom of the page, …

angular typescript angular2-routing angular2-template angular2-directives
How to add "class" to host element?

I dont't know how to add to my component <component></component> a dynamic class attribute but …

angular angular2-template
How to truncate text in Angular2?

Is there a way that I could limit the length of the string to a number characters? for e.g: …

angular angular2-template
Can't bind to 'ngForOf' since it isn't a known property of 'tr' (final release)

I'm using Angular2 Final release (2.1.0). When I want to display a list of companies, I got this error. in file.…

angular angular2-template