File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 44
44
- List types of scopes directive can have?
45
45
- How Directives are compiled?
46
46
- What are the directives in angularJS?
47
+ - What are different ways to invoke a directive?
47
48
48
49
49
50
### 4. Filters
@@ -504,7 +505,7 @@ Class('C') <span class="my-directive: expression;"></span>
504
505
Element ('E') <my-directive></my-directive>
505
506
Comment ('M') <!-- directive: my-directive expression -->
506
507
507
- #### Q. ***What is difference between $scope and scope ?***
508
+ #### Q. ***What is difference between $scope and scope?***
508
509
$scope - In case of DI, you inject the scope object with the dollar prefix i.e. $scope. The reason is
509
510
the injected arguments must match to the names of injectable objects followed by dollar ($) prefix .
510
511
@@ -513,7 +514,7 @@ you just pass the scope object without using dollar prefix i.e. scope. The reaso
513
514
are received by its caller.
514
515
515
516
516
- #### Q. ***What is difference between services and factory ?***
517
+ #### Q. ***What is difference between services and factory?***
517
518
Service - It is just a function for the business layer of the application . It is act as a constauctor function
518
519
and invoked once at a run time with new keyword.
519
520
You can’t perform that action at this time.
0 commit comments