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 2 Slide Up and Down Animation

I recently built the following Angular 2 Read More component. What this component does is collapse and expand long blocks of …

angular typescript angular2-template angular2-directives
Angular2 how to handle value of date pipe is null

I have template using date pipe like this {{value | date: 'dd/MM/yyyy'}} this value is null How to handle …

angular angular2-template
Angular 2+ one-time binding

In angular 1 we could do one time binding in this way: {{ ::myFunction() }}. In angular 2 this is throwing: EXCEPTION: Template parse …

javascript angular angular2-template
Async pipe does not fill object data into template

Can anyone help me see if there is a syntax error here in my template? It does not give error, …

angular angular2-template
angular2 and formControlName value in template

Oh angular2...why so hard? <input type="text" formControlName="exposure" type="hidden"> <label>{{exposure}}</label&…

angular angular2-template
Angular 2 unit testing - @ViewChild is undefined

I am writing an Angular 2 unit test. I have a @ViewChild subcomponent that I need to recognize after the component …

unit-testing angular angular2-template ng2-bootstrap
Angular2 version RC.6 "directives" inside @Component Error

I am using Angular2 and have downloaded package.json from the official website. When I am trying to use "directives" …

angular angularjs-directive angular2-template
Uncaught exception in promise when when trying to use nested components

I am getting this exception when trying to use nested components: EXCEPTION: Error: Uncaught (in promise): TypeError: Cannot set property …

angular angular2-template angular2-directives
@Input in Angular 4

I am new to Angular 4.As per my understanding, @Input is used to pass values to a component. But when …

angular input angular2-template angular2-components
How to use template in <p-datatable>

I've got a very basic question which I can't answer myself because most links to http://www.primefaces.org/primeng …

angular datatable angular2-template primeng