|
1 | 1 | ## AngularJS ( v1.7.x ) Interview Questions with Example |
2 | 2 |
|
| 3 | + |
3 | 4 | ### 1. Basics |
4 | 5 | - Why to use AngularJS? |
5 | 6 | - What are the advantage of AngularJS? |
|
10 | 11 | - What are the AngularJS features? |
11 | 12 | - When dependent modules of a module are loaded? |
12 | 13 | - What is Angular’s prefixes $ and $$? |
13 | | - - What are Filters in AngularJS? |
14 | | - - What are Directives in AngularJS? |
15 | 14 | - What is the role of ng-app, ng-init and ng-model directives? |
16 | 15 | - What are different ways to invoke a directive? |
17 | 16 | - What is restrict option in directive? |
18 | 17 | - Can you define multiple restrict options on a directive? |
| 18 | + - What is scope in AngularJS? |
| 19 | + - What is $scope and $rootScope? |
| 20 | + - What is scope hierarchy? |
| 21 | + - What is the difference between $scope and scope? |
| 22 | + - How AngularJS compilation is different from other JavaScript frameworks? |
| 23 | + - What are Compile, Pre and Post linking in AngularJS? |
19 | 24 |
|
20 | 25 |
|
21 | 26 | ### 2. Architecture |
|
28 | 33 | - Do you use some sort of angular style guides? |
29 | 34 | - What is dependency injection? Explain difference between inline and explicit annotation? |
30 | 35 | - What is auto bootstrap process in AngularJS? |
| 36 | + - What is manual bootstrap process in AngularJS? |
| 37 | + - How AngularJS is compiled? |
| 38 | + |
31 | 39 |
|
32 | 40 | ### 3. Directives |
33 | | - - What is directive in angularjs? |
34 | | - - List some built-in directives |
35 | | - - Explain difference between 'compile' and 'link' callbacks in directive definition |
36 | | - - List types of scopes directive can have |
| 41 | + - What is directive in angularjs? |
| 42 | + - List some built-in directives |
| 43 | + - Explain difference between 'compile' and 'link' callbacks in directive definition |
| 44 | + - List types of scopes directive can have? |
| 45 | + - How Directives are compiled? |
| 46 | + |
| 47 | + |
| 48 | +### 4. Filters |
| 49 | + - What are Filters in AngularJS? |
| 50 | + |
37 | 51 |
|
38 | | -### 4. How it works |
| 52 | +### 5. How it works |
39 | 53 | - How works `$digest`? |
40 | 54 |
|
41 | | -### 5. Performance |
| 55 | + |
| 56 | +### 6. Performance |
42 | 57 | - What is the best practice to build your application |
43 | 58 | - When it is necessary or whether it is necessary to use `$scope.$apply` |
44 | 59 |
|
@@ -476,12 +491,6 @@ level-Three: post link |
476 | 491 | level-Two: post link |
477 | 492 | level-One: post link |
478 | 493 | ``` |
479 | | -
|
480 | | -#### Q. ***What is the role of ng-app, ng-init and ng-model directives?*** |
481 | | -* **ng-app** - Initialize the angular app. |
482 | | -* **ng-init** - Initialize the angular app data. |
483 | | -* **ng-model** - Bind the html element |
484 | | -
|
485 | 494 |
|
486 | 495 | #### Q. ***What are the directives in angular JS ?*** |
487 | 496 | AngularJS directives are a combination of AngularJS template markups (HTML attributes or elements, or |
|
0 commit comments