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 4444 - List types of scopes directive can have?
4545 - How Directives are compiled?
4646 - What are the directives in angularJS?
47+ - What are different ways to invoke a directive?
4748
4849
4950### 4. Filters
@@ -504,7 +505,7 @@ Class('C') <span class="my-directive: expression;"></span>
504505Element ('E') <my-directive></my-directive>
505506Comment ('M') <!-- directive: my-directive expression -->
506507
507- #### Q. ***What is difference between $scope and scope ?***
508+ #### Q. ***What is difference between $scope and scope?***
508509$scope - In case of DI, you inject the scope object with the dollar prefix i.e. $scope. The reason is
509510the injected arguments must match to the names of injectable objects followed by dollar ($) prefix .
510511
@@ -513,7 +514,7 @@ you just pass the scope object without using dollar prefix i.e. scope. The reaso
513514are received by its caller.
514515
515516
516- #### Q. ***What is difference between services and factory ?***
517+ #### Q. ***What is difference between services and factory?***
517518Service - It is just a function for the business layer of the application . It is act as a constauctor function
518519and invoked once at a run time with new keyword.
519520
You can’t perform that action at this time.
0 commit comments