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

后端 未结 5 1499
谎友^
谎友^ 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:53

    I just experienced the same, and the problem was that I had the wrong case ('a' vs 'A') for the component.

    In my parent component's template, I had:

    
    

    Instead of

    
    

提交回复
热议问题