angular.io icon indicating copy to clipboard operation
angular.io copied to clipboard

I can add a reference to a component without closing the tag - causes it to load twice.

Open iainplimmer opened this issue 9 years ago • 2 comments

I can make a reference to a component that I create in another component as follows:

`<app-tasklist></app-tasklist>`

However, if i do not close the tag......

`<app-tasklist><app-tasklist>`

The component is actually loaded twice if the component tag is not closed. The compiler should realise that this is a typo and give a warning. At the moment (for someone who has tried to get started with NG2 a couple of times in BETA to have a feel around), it just feels like the issue is with import statements, or a bug in the compiler and is frustrating.

iainplimmer avatar Dec 20 '16 10:12 iainplimmer

If you feel it is a bug, create a plunker reproduction and post it at angular/angular. This repo is only for documentation issues.

Thanks.

Foxandxss avatar Dec 20 '16 11:12 Foxandxss

My mistake @Foxandxss, sorry about that ;)

iainplimmer avatar Dec 20 '16 13:12 iainplimmer