Skip to content

Commit ea90df4

Browse files
committed
more questions
1 parent 281b13c commit ea90df4

File tree

4 files changed

+110
-28
lines changed

4 files changed

+110
-28
lines changed

angular/beginner/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,31 @@ Do a favor to yourself. Goggole the interviewer. Look at his/her linkedin provil
1717
### What category Questions( Angular terminology)
1818
1. What are the difference between angularJS (angular 1.0) and angular2
1919
2. What is a component
20+
1. What is the minimum definition of a component?
2021
3. What is a module
2122
4. What design framework you have used and why
2223
5. What is a service
2324
5. What is a promise
2425
7. What are the life cycle hooks for component and directives
2526
8. What is pipes
27+
9. What is a pure pipe?
2628
9. What is authGuard
29+
1. What is dumb component
30+
2731

2832

2933
### Question to verify you did some work
34+
1. How do components communicate with each other?
35+
1. How do you create two way data binding in Angular?
3036
6. How you build an angular app for production
3137
6. How would you run unit test
3238
7. How you create custom pipes
3339
8. Which life cycle hook will you use to unsbscribe a promise
3440
1. How can you get current state of a route
3541
2. How will you protect a route for authorized user only
42+
1. How to use http service to load data from serve
43+
1. How are the services injected to your application?
44+
3645

3746

3847
### Question about understanding
@@ -41,6 +50,8 @@ Do a favor to yourself. Goggole the interviewer. Look at his/her linkedin provil
4150
1. Why will you use a module
4251
3. What are the difference between a component and a directive
4352
5. Why would you use a module
53+
6. Why would you use typescript aka benefits of typescript
54+
4455

4556
*****
4657

angular/codingTest/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Angular Interview Questions
2+
3+
4+
## Coding Test
5+
6+
you just built hello world in angular2+ and may be you followed some video or blog and now you are brave enough to tell the interviewer that you know little bit angular2.
7+
8+
### Expect the following questions
9+
10+
11+
How would you implement a brush behavior using rxjs?
12+
How would you implement a color picker with rxjs?
13+
14+
15+
16+
Answers link coming soon

angular/expert/README.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,38 @@ you just built hello world in angular2+ and may be you followed some video or bl
88
### Expect the following questions
99

1010

11+
1. what is factory Component
12+
1. What is lazy loading
13+
1. what is AOT
14+
1. What are some of the Angular Style Guide suggestions you follow on your code? Why?
1115

16+
### Animation
17+
1. what is wildcard state?
18+
1. How do you put animation between two states?
19+
1. How will you do lazy loading in angular application
20+
1. What would be a good use for NgZone service?
21+
1. How would you protect a component being activated through the router?
22+
1. How would you insert an embedded view from a prepared TemplateRef?
1223

1324

14-
### Animation
15-
* what is wildcard state?
16-
* How do you put animation between two states?
25+
## How
26+
1. How will you http interceptor
27+
1. How you parallelize multiple observable call
28+
1. how will you put one async call before another
29+
30+
1. What tools would you use to find a performance issue in your code?
31+
1. What are some ways you may improve your website's scrolling performance?
32+
1. Explain the difference between layout, painting and compositing.
33+
1. When does a lazy loaded module is loaded?
34+
1. How do you identify a structural directive in html?
35+
1. How would you create a component to display error messages throughout your application?
36+
37+
38+
39+
1. How would you implement a multiple api calls that needs to happen in order using rxjs?
40+
1. How would you make sure an api call that needs to be called only once but with multiple conditions. Example: if you need to get some data in multiple routes but, once you get it, you can reuse it in the routes that needs it, therefor no need to make another call to your backend apis.
41+
1. If you need to respond to two different Observable/Subject with one callback function, how would you do it?(ex: if you need to change the url through route parameters and with prev/next buttons).
1742

43+
##
1844

1945
Answers link coming soon

angular/intermediate/README.md

Lines changed: 54 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,65 @@
1-
# angular2 interview questions
1+
# Intermediate Level Angular Interview Questions
22

33

4-
## intermediate
4+
## intermediate developer
55

66
you built angular2 you played with routing, https, different built process, unit test, etc. here are the questions you could expect
77

8-
* What is the difference between a component and a directive?
9-
* How do components communicate with each other?
10-
* How do you create two way data binding in Angular?
11-
* What is the purpose of NgModule?
12-
* How do you decide to create a new NgModule?
13-
* What are the attributes that you can define in an NgModule annotation?
14-
* What is the difference between a module's forRoot() and forChild() methods and why do you need it?
15-
* What is a structural directive?
16-
* How do you identify a structural directive in html?
8+
In the intermediate level you are very compfortable with angular2. Hence there is no what questions. Actually you know all of them by now. Hence there will be only how and why type questions
179

18-
* How would you select a custom component to style it.
19-
* What pseudo-class selector targets styles in the element that hosts the component?
20-
* How would you select all the child components' elements?
2110

22-
* What is the possible order of lifecycle hooks.
23-
* When will ngOnInit be called?
24-
* How would you make use of ngOnInit()?
11+
### What category questions (just few bonus)
12+
1. What is the difference between RouterModule.forRoot() vs RouterModule.forChild()? Why is it important?
13+
1. What is the difference between an observable and a promise?
14+
1. What are some of the angular apis that are using observables?
15+
1. What is the difference between a module's forRoot() and forChild() methods and why do you need it?
16+
1. What is a structural directive?
17+
1. What pseudo-class selector targets styles in the element that hosts the component?
18+
1. What's the difference between dirty, touched, and pristine on a form element?
19+
1. What is a structural directive?
20+
1. What is an async pipe?
21+
1. What kind of data can be used with async pipe?
22+
1. What is the difference between ngOnInit() and constructor() of a component?
23+
1. When will ngOnInit be called?
24+
1. How would you make use of ngOnInit()?
2525

26-
* What is a pure pipe?
2726

28-
* What is the difference between RouterModule.forRoot() vs RouterModule.forChild()? Why is it important?
2927

30-
* What is the difference between an observable and a promise?
31-
* What are some of the angular apis that are using observables?
32-
* How would you cache an observable data?
3328

34-
* Why do you need type definitions?
35-
* How would you define a custom type?
36-
* What is the difference between an Interface and a Class?
29+
### How category questions
30+
1. How do components communicate with each other?
31+
1. How do you create two way data binding in Angular?
32+
1. What is the purpose of NgModule?
33+
1. How do you decide to create a new NgModule?
34+
1. How do you identify a structural directive in html?
35+
1. How would you select a custom component to style it.
36+
1. How would you select all the child components' elements?
37+
1. How would you make use of ngOnInit()?
38+
1. How would you cache an observable data?
39+
1. How will you inject header
40+
1. How would you create a custom pipe?
41+
1. How would you pass data from a parent component to a child component?
42+
1. How would you pass data from a child component to a parent component?
43+
1. How would you cache observable data?
44+
1. How do you mock a service to inject in a unit test?
45+
1. How do you mock a module in a unit test?
46+
47+
48+
### Why category questions
49+
1. Why angular2 uses decorator
50+
1. When will ngOnInit be called?
51+
1. Why do you need type definitions?
52+
1. Which components will be notified when an event is emitted?
53+
1. Why would you create shared module?
54+
1. What would you not put shared module?
55+
1. Why would you export from ngModule?
56+
1. Why is it bad if SharedModule provides a service to a lazy loaded module?
57+
1. What is the difference between an observable and a promise?
58+
1. Can you explain the difference between ActivatedRoute and RouterState?
59+
1. which service will you put in the module and why
60+
1. What is async validation and how is it done?
61+
62+
63+
64+
answers coming soon
65+

0 commit comments

Comments
 (0)