Top "Angular-components" questions

A component controls a patch of screen called a view.

What is the equivalent of ngShow and ngHide in Angular 2+?

I have a number of elements that I want to be visible under certain conditions. In AngularJS I would write &…

angular angular-components angular-template
How can I select an element in a component template?

Does anybody know how to get hold of an element defined in a component template? Polymer makes it really easy …

angular typescript angular-components
How to style child components from parent component's CSS file?

I've got a parent component: <parent></parent> And I want to populate this group with child …

css angular angular-components
Call child component method from parent class - Angular

I have created a child component which has a method I want to invoke. When I invoke this method it …

angular typescript angular-components
Angular 2 'component' is not a known element

I'm trying to use a component I created inside the AppModule in other modules. I get the following error though: "…

angular typescript angular-components angular-module
Angular 2: How to style host element of the component?

I have component in Angular 2 called my-comp: <my-comp></my-comp> How does one style the host element …

css angular css-selectors angular-components
How to rename a component in Angular CLI?

Is there any shortcut to rename a component with the Angular CLI other than manually editing all the component files …

angular angular-cli rename angular-components
How to get element's width/height within directives and component?

Hey,I want to get element's width/height within MoveDirective and DonationComponent,I read the document several times but still …

angular angular-directive angular-components
How to Update a Component without refreshing full page - Angular

My Page structure is: <app-header></app-header> <router-outlet></router-outlet> <app-footer></…

javascript angular refresh angular-components
Generating Component without spec.ts file in Angular 2+

Is there a way to get rid of the spec.ts file in Angular 2+, whenever I create a new component. …

angular angular-cli angular-components angular-schematics