Image for post

Recently, I was trying to prepare myself for the upcoming interviews and it was a bit tough to search in google and open link and see same questions each and every time so I thought of sharing what I have found and what is most common questions someone should know if they are preparing for an interview.

Below Is the most common interview questions asked in Angular Developer Interviews. These questions and answers help to prepare for JavaScript developer interviews from junior to senior levels. Moreover, this article covers the basics to advance angular interview questions.

One of the most common questions that appear in the frontend interview is what is the difference between declarations, providers, and import? Let’s see the detailed explanation of this question and understand basic angular concepts.

Angular Concepts

  • imports makes the exported declarations of other modules available in the current module
  • declarations are to make directives (including components and pipes) from the current module available to other directives in the current module. Selectors of directives, components, or pipes are only matched against the HTML if they are declared or imported.
  • providers are to make services and values known to DI (dependency injection). They are added to the root scope and they are injected into other services or directives that have them as a dependency.

#typescript #angular #javascript

What Is The Difference Between Declarations, Providers, and Import ?
1.35 GEEK