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.

string concatenation with property binding in angular2

in Angular 2 we have several way to create property bindings in templates. I could do something like this: <li *…

javascript angular2-template
Angular2: replace host element with component's template

I'm new to angular in general and to angular2 specifically. I'm trying to write a container component, which should have …

angular angular2-template angular2-directives
What is the difference between ngAfterContentInit and ngAfterViewInit?

What is the difference between functions ngAfterContentInit and ngAfterViewInit ?

angular angular2-template
calling success, error callbacks using subscribe in angular2?

Giving responce.json () is not function for my case component.ts this.AuthService.loginAuth(this.data).subscribe(function(response) { console.…

angular angular2-template angular2-services
How can create a dynamic menu in angular 2?

I need to create a dynamic menu after user logged in successfully and redirected to home page using Angular 2. Exactly …

angular angular2-template angular2-services
Type 'ElementRef' is not generic

I am working with a project using Material Component in Angular 5. I did update my Visual code but I don't …

angular angular5 angular2-template angular2-forms angular2-services
Angular2, view not updating after variable changes in settimeout

I am trying to setup my first angular2 application as an experiment and am using the latest beta release. I …

javascript typescript angular angular2-template
Generic type 'Array<T>' requires 1 type argument(s). - Angular2

I have been trying to implement a simple ngFor with Angular2 but I don't know what went wrong which lead …

angular angular2-template angular2-directives angular2-components
Angular 2 - How to automatically bind object values to related to Form Controls?

I'm using model driven forms and I'm searching a better way to bind the data to related to formControlName's because …

angular angular2-template angular2-forms angular2-formbuilder
Dynamically changing the template for an Angular 4 components

Using Angular 4.1, I'm trying to dynamically change a module type's template before the module rendered. Is this possible? We are …

angular angular2-template angular2-components