DEV Community

loading...
Cover image for Expert level Angular Interview Questions Part 1

Expert level Angular Interview Questions Part 1

acharyaks90 profile image Acharya Anil ・2 min read

Components

How is changing the CD strategy to onPush impact component?
How to make child component data two way data binding?
What is the dynamic component?
What is an angular element?
What is a component factory resolver?
In Parent to child component communication. suppose an object have two properties only change in one property in parent, Will change reflect in the child component?
When change detection runs?
What is Virtual Scroll?
How to design drag and drop functionality?
What is application ref?
In which life cycle hook Viewchildren and content children can be accessed?

Templates

Define Styling precedence ?
Difference between @Attribute() vs @Input()?
How to use svg file as templates?
Template type checking in custom directive?
3 Mode of template type checking?
ngAfterContentChecked and ngAfterViewChecked?
Write code for custom pipe for change the string to title case? How impure pipe impact angular.
How pipe change detection works for primitive and references objects ?
What is use of Async pipe ?
Which have higher precedence between pipe and ternary operator ?
What is innerHtml?.
How to made custom two way binding like ngModel?
What happens if assign template local reference variable on ng-template?

Directives

What is template input variable?
Which Module need to import for using built in directives?
Is angular selector support parent child relationship ?
Explain Hostbinding, Hostlistener?
Explain ContentChildren and ViewChild ?
Write the syntax for ngClass use cases?
Tell the use case of ngModel Change ?
Explain the use of trackby?
How to host a directive without Dom?
What is ElementRef use?
How to stop/Deactivate the processing of directive or binding ?
How to create template fragments ?
What is template guard?
What we use common module? If we don’t include that common module then what happen?

Dependency Injection

What is a provider token?
How to provide an alternative Class provider?
What is a factory provider?
What is a parameter decorator?
Making dependency option and search with a host?
How to alias class interface?
How to inject an object? syntax also?
What is the use of @Inject or How to supply a custom provider?
What is meta data?
If we not provide the Injectable then how does it impact?
When do we use useValue , useFactory ?

Routing & Navigation

What is the difference between canLoad and canActivate?
What is a router event ? name the any of ?
Differentiate the param and query param in lazyloading?
How to redirect any path ?
What does pathMatch signifies ?
What are auxiliary routes?
What is canResolve route guard?
What is the location strategy? Please enlighten the type also? Or There are two kind of Url one with hash one without hash compare both?
Explain the properties of the activated route?
How to use a scroll event in navigation?
Name the navigation event trigger when loading lazyload routes?
What is router outlet?
What is URL tree?
What does a route guard return?

Discussion (0)

Forem Open with the Forem app