Angular INTERVIEW Questions and Answers

Q1: What is Routing Guard in Angular?

Q2: What is a module, and what does it contain?

Q3: What are the pipes? Give me an example.

Q4: What are the differences between AngularJS (angular 1.x) and Angular (Angular 2.x and beyond)?

Q5: What is a component? Why would you use it?

Q6: What is the minimum definition of a component?

Q7: What's the difference between an Angular component and a module?

Q8: What is a service, and when will you use it?

Q9: What is the equivalent of ngShow and ngHide in Angular?

Q10: You have an HTML response I want to display. How do I do that?

Q11: How can I select an element in a component template?

Q12: What is the difference between *ngIf vs [hidden]?
Q13: What is the difference between "@Component" and "@Directive" in Angular?
Q14: What does this line do?
Q15: How would you protect a component being activated through the router?
Q16: What are some differences between Angular 2 and 4?
Q17: How would you run unit test?
Q18: What is the difference between Structural and Attribute directives in Angular?
Q19: What is the purpose of base href tag?
Q20: What is an observer?
Q21: What is an observable?
Q22: What are observables?
Q23: What is a bootstrapping module?
Q24: What is interpolation?
Q25: What is the equivalent of "ngShow" and "ngHide" in Angular?
Q26: Explain the difference between `Promise` and `Observable` in Angular?
Q27: Explain the difference between "Constructor" and "ngOnInit"
Q28: What is the difference between `@Component` and `@Directive` in Angular?
Q29: Can you explain the difference between `Promise` and `Observable` in Angular? In what scenario can we use each case?

Q30: Why should `ngOnInit` be used, if we already have a `constructor`?
Q31: How to bundle an Angular app for production?
Q32: What is difference between "declarations", "providers" and "import" in NgModule?
Q33: What is Reactive Programming and how to use one with Angular?
Q34: What's new in Angular 6 and why shall we upgrade to it?
Q35: Why would you use a spy in a test?
Q36: What is TestBed?
Q37: What is Protractor?
Q38: What is the point of calling renderer.invokeElementMethod(rendererEl, methodName)"?

Q39: How would you control size of an element on resize of the window in a component?

Q40: What is AOT?

Q41: What is Redux and how does it relate to an Angular app?
Q42: What is the use of codelyzer?
Q43: How to inject base href?
Q44: When would you use eager module loading?

Q45: What are the Core Dependencies of Angular 7?
Q46: Why Incremental DOM Has Low Memory Footprint?
Q47: What are the ways to control AOT compilation?
Q48: What is Angular Universal?

Q49: Do I need a Routing Module always?

Q50: What is the purpose of Wildcard route?

Q51: What is activated route?

Q52: What is router state?

Q53: What is router outlet?

Q54: What are dynamic components?

Q55: Explain how custom elements works internally?

Q56: What are custom elements?

Q57: What are the utility functions provided by RxJS?

Q58: How do you perform error handling in observables?

Q59: What is multicasting?

Q60: What is subscribing?

Q61: How do you perform Error handling for HttpClient?

Q62: What is a parameterized pipe?

Q63: How do you categorize data binding types?

Q64: What happens if you use script tag inside template?

Q65: What is the option to choose between inline and external template file?

Q66: What's new in Angular 8?
Q67: Angular 8: What is Bazel?
Q68: Angular 8: What is Angular Ivy?
Q69: Angular 8: Explain Lazy Loading in Angular 8?
Q70: What is the difference between promise and observable?
Q71: When should I store the "Subscription" instances and invoke `unsubscribe()` during the NgOnDestroy life cycle and when can I simply ignore them?

Q72: Could I use jQuery with Angular?

Q73: How to set headers for every request in Angular?

Q74: How to detect a route change in Angular?

Q75: What is the need for SystemJS in Angular?
Q76: Are there any pros/cons (especially performance-wise) in using local storage to replace cookie functionality?
Q77: What does "detectChanges" do in Angular jasmine tests?
Q78: Why would you use renderer methods instead of using native element methods?
Q79: What would be a good use for NgZone service?

Q80: What is Zone in Angular?

Q81: What does a just-in-time (JIT) compiler do (in general)?
Q82: What is Reactive programming and how does it relate to Angular?
Q83: Name some security best practices in Angular

Q84: What is ngUpgrage?
Q85: How do you create application to use scss? What changed for Angular 6?

Q86: Name and explain some Angular Module Loading examples
Q87: Why would you use lazy loading modules in Angular app?
Q88: When does a lazy loaded module is loaded?
Q89: What is Ivy Renderer? Is it supported by Angular 7?
Q90: Why do we need compilation process?
Q91: What are the advantages with AOT?
Q92: What are the mapping rules between Angular component and custom element?
Q93: Do I need to bootstrap custom elements?
Q94: What is the difference between pure and impure pipe?
Q95: Angular 8: Why we should use Bazel for Angular builds?
Q96: Explain the purpose of Service Workers in Angular
Q97: Angular 9: What are some new features in Angular 9?
Q98: What are the lifecycle hooks for components and directives?
Q99: How would you insert an embedded view from a prepared TemplateRef?
Q100: What is incremental DOM? How is it different from virtual DOM?
Q101: What is the difference between BehaviorSubject vs Observable?
Q102: What is the Angular equivalent to an AngularJS "$watch"?
Q103: Is there no equivalent to `$scope.emit()` or `$scope.broadcast()` in Angular?
Q104: Name some differences between SystemJS vs WebPack?
Q105: Could you provide some particular examples of using ngZone?
Q106: What is the default compilation for Angular 5?
Q107: Do you know how you can run angularJS and angular side by side?

Q108: How would you extract webpack config from angular cli project?
Q109: Why angular uses url segment?
Q110: When to use query parameters versus matrix parameters?
Q111: Why did the Google team go with incremental DOM instead of virtual DOM?
Q112: Why Incremental DOM is Tree Shakable?
Q113: What's new in Angular 7?
Q114: What are observable creation functions?
Q115: Angular 8: How does Ivy affect the (Re)build time?
Q116: Angular 8: What are some changes in Location module?
Q117: Angular 9: What is Locality principle for Ivy?
Q118: Angular 9: Explain improvements in Tree-Shaking
Q119: Angular 9: How Would You Compare View Engine vs Ivy?
Q120: Just-in-Time (JiT) vs Ahead-of-Time (AoT) compilation. Explain the difference.




















What is the difference between *ngIf vs [hidden]?

No comments:

Post a Comment

Rewrite whole Web Site System and Sub System with data migration to new system.

Can you please share me your skype id or whats up number for better communications  my skype id is - jitendra.tech  whats up - +919617741414...