Angular2 module has no exported member

前端 未结 10 1281
梦谈多话
梦谈多话 2020-12-29 01:09

For a website with authentication in Angular2, I want to use a component of the authentication submodule in the main app component. However, I keep getting the following err

10条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-29 02:05

    I got similar issue. The mistake i made was I did not add service in the providers array in app.module.ts. Hope this helps, Thank You.

提交回复
热议问题