What are the steps to use declaration elements?

Below are the steps to be followed to use declaration elements.

  1. Create the element(component, directive and pipes) and export it from the file where you wrote it
  2. Import it into the appropriate module.
  3. Declare it in the @NgModule declarations array.

Made in India with ❤️ by Rajesh Kumar Yadav