Top "Angular-components" questions

A component controls a patch of screen called a view.

angular 4: call a method from a different component

I have 2 sibling components, I am doing an http request in one component, and if a particular condition happens, it …

angular angular-components
Angular 4 ExpressionChangedAfterItHasBeenCheckedError

in ParentComponent => ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: ''. Current value: '[object Object]'. …

angular typescript angular-components
How can I use @HostListener('window:beforeunload') to call a method?

I am trying to call a post method I made myself before my component is unloaded, but it doesn't work. …

angular debugging onbeforeunload angular-components
Angular 4 call directive method from component

i'm trying to build a structural directive that will change the parent DOM structure either invoked by using its selector (…

angular angular-directive angular-components
Can't add a new component to my angular 2 app with typescript

I'm using Angular 2 CLI and I created the component "MyComponent" with the ng generate component MyComponent. As far as I …

angular typescript atom-editor angular-components
Angular 2+: Get child element of @ViewChild()

How can I access the child elements (here: <img>) of @ViewChild() in Angular 2+ without explicit declaration? In template.…

angular angular-components viewchild
Angular 2 send data from component to service

My target is to send data from Angular component to service and use service methods to work on it. Example: …

javascript angular typescript angular-services angular-components
Vertical tabs with Angular Material

Using the proper Angular Material directive, how do I change the direction to vertical? Starting with vertical tabs: Then want …

css angular angular-material2 angular-components angular-material-5
How to change parent variable from children component?

This question is quite simple but I can't get rid of it. I have a <header> in parent …

angular angular2-routing angular-components
Communicating Events from Parent to Child in AngularJS Components

in the new project I'm working on I've started using the components instead of directives. however, I've encountered an issue …

javascript angularjs angular-directive angular-components