Top "Angular2-components" questions

In Angular 2, Components are the main way we build and specify elements and logic on the page.

@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
Angular2 get activated route parameters and parent parameters

How do I get the RouteParams from a parent component as well as child routes export const routes: Routes = [ { path: …

angular angular2-routing angular2-components
Share data between components using a service in Angular2

I am developing an application using angular2. I have a scenario where I need to pass complex data (array of …

angular angular2-routing angular2-components
How to perform DOM manipulation in Angular components?

How do we get hold of DOM elements in Angular (Version 2.x and above)? The basic functions like addClass, removeClass …

angular typescript angular2-components angular5
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
How to open a Angular component in a new tab?

I have a considerable amount of data to show on the screen. I need to present a simplified list so …

angular typescript angular2-components
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
Testing ngOnChanges lifecycle hook in Angular 2

Given the following code I try to test the ngOnChanges lifecycle hook of Angular2: import { it, inject, fdescribe, beforeEachProviders, } from …

angular karma-jasmine angular2-components angular2-testing
Angular2 Component How to Import Directive Component?

I just upgraded to angular2 final release and there were alot of breaking changes from rc4. One of which is …

angular angular2-components
angular2 pass ngModel to a child component

I have ParentComponent and a ChildComponent, and I need to pass the ngModel in ParentComponent to ChildComponent. // the below is …

angular angular2-components angular2-ngmodel