Can't bind to 'x' since it isn't a known property of 'y'

后端 未结 5 1484
谎友^
谎友^ 2020-12-16 08:56

I have an angular site that contains a component inside another component. I\'m using routing and lazy loading the outer component (ComponentA). The inner component (Compone

5条回答
  •  抹茶落季
    2020-12-16 09:50

    Had a similar scenario to MMalke. By default Angular adds the prefix app- to the selector name of a component when the component is generated via the command line interface. I should have written but I wrote instead. FYI, check to make sure the component's selector name matches what's in your HTML.

提交回复
热议问题