Top "Angular2-components" questions

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

How to use Angular 2's FormBuilder between multiple components

I am trying to use FormBuilder in a page I have in Ionic 2. First, here is my environment details: Running …

angular ionic2 angular2-components angular2-formbuilder
How to use ResolveComponentFactory() but with a string as a key

What I'm trying to do: Use something similar to the "resolveComponentFactory()", but with a 'string' identifier to get Component Factories. …

angular typescript dynamic angular2-components
Angular2 Component: Testing form input value change

I have a text input and i'm listening for the changes. mycomponent.ts ngOnInit() { this.searchInput = new Control(); this.searchInput.…

unit-testing angular angular2-forms angular2-components angular2-testing
Angular 2 can't find a component declared in my feature module

I'm having a tough time getting modules to work in Angular 2. I have created a plunk that demonstrates the problem. …

angular angular2-components
Accessing `selector` from within an Angular 2 component

I'm trying to figure out how I can access the selector that we pass into the @Component decorator. For example @…

angular angular2-directives angular2-components angular2-decorators
What are recommanditions for @Output event names (to prevent native event name collision)?

I have played with Angular 2 components and their compositions and I have run into ugly behavior, which is caused by …

angular angular2-components
Generic type 'ComponentRef<C>' requires 1 type argument(s)

Unable to remove dynamic components in ionic-2. It’s saying exception while typescript compile “Generic type 'ComponentRef' requires 1 type argument(…

angular ionic2 angular2-components
Importing a component from another component

I'm trying to call a child component's function from a parent component. As I understand, the best way to go …

angular angular2-components
viewchild input property not updated when needed angular 2

I have been looking for some reason of this behavior, the value of a Input() property in a child component …

angular angular2-components viewchild
How can I call function from directive after component's rendering?

How can I call function from directive after component's rendering? I have component: export class Component { ngAfterContentInit() { // How can i …

angular typescript angular2-directives angular2-components