I’m trying to use a component I created inside the AppModule in other modules. I get the following error though: “Uncaught (in promise): Error: Template parse errors: ‘contacts-box’ is...
I have component in Angular 2 called my-comp: <my-comp></my-comp> How does one style the host element of this component in Angular 2? In Polymer, You would use “:host” selector....
I have created a child component which has a method I want to invoke. When I invoke this method it only fires the console.log() line, it will not set...
Is there any shortcut to rename a component with the Angular CLI other than manually editing all the component files such as folder name, .css, .ts, spec.ts and app.module.ts?...
I’ve got a parent component: <parent></parent> And I want to populate this group with child components: <parent> <child></child> <child></child> <child></child> </parent> Parent template: <div class="parent"> <!-- Children goes here...
Does anybody know how to get hold of an element defined in a component template? Polymer makes it really easy with the $ and $$. I was just wondering...
I have a number of elements that I want to be visible under certain conditions. In AngularJS I would write <div ng-show="myVar">stuff</div> How can I do this in Angular...