FrontendDeveloper.in

Angular question detail

What are the possible errors with declarations?

There are two common possible errors with declarations array,

  1. If you use a component without declaring it, Angular returns an error message.
  2. If you try to declare the same class in more than one module then compiler emits an error.
Back to all Angular questions
Get LinkedIn Premium at Rs 399