DEV Community

Cover image for Expert level Angular interview questions Part 2

Expert level Angular interview questions Part 2

acharyaks90 profile image Acharya Anil ・2 min read


What form approaches are available ? Among them which is best and why?
In Which form of approach data model is immutable?
How does data flow differently in template and reactive forms?
What is benefit of ngForm Driective ?
Differentiate the pristine dirty touched ?
How to put custom validation in template driven forms?
What is use of remove Control ?
How to use Update Model?
How to show validation errors in dynamic template driven form and reactive forms ?
Write code for custom validation for reactive forms ?
What is cross field validation?
Implement async validator for template driven form?
How to compose dynamic form content?

HTTP Client

How to consume an JSON REST api (server)?
Which service is used for hitting an api?
Differentiate between get and post?
What is a header?
In Auth 2 how to manage token expire scenario by renew it using refresh token without impact of user experience?
Where do we put http params in the request ?
What are different type of response type available in angular?
What is role of observe in request ?
How get upload progress of file request ?
How t request a typed response?
How to read the full response?
How to make and consume a jsonp request?
How to request non json data ? like download a file.
Write code for interceptor ? also where do we need it to inject?
In provider array we use multi true what it does ?
How can we apply caching in request?
How to apply debouncing in request?
How you can secure the requests?
How to handle more than one request suppose need to get path of 100 of images in an array ?


Write the code for testing a service ?
Why we need before each?
Difference between equal to and tobe?
Why we need fake service?
Testing without before each ?
How to test http service?
What is needed for component dom test?
Use of by.css
What is the debug element?
How to test attribute directive?
Explain tick , discard periodic task , component fixture auto detect?
Explain compile, component?
How replace meta data ?
How to reset the test environment?
Please enlist the component fixture methods?
What is isStable ?
What is listener in testing?
What is By.directive ?

Internationalization (i18n)

How to change the currency according to timezone?
Name the local package?
How to support the translation?
In which file we put localize configuration ?


Enlist the some animation functions we import from modules?
Write and animation code ?
Explain delay and easing?
What is trigger in animation Where we put the trigger?
What is use of animateChild ?
How to create reusable animation?
How to add animation in route transition?
How to add animation in ngFor for element for leaving and entering?

Discussion (0)

Editor guide