8000 Update README.md · learning-zone/angularjs-basics@dea0760 · GitHub
[go: up one dir, main page]

Skip to content

Commit dea0760

Browse files
committed
Update README.md
1 parent 7bf3581 commit dea0760

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
- How would you specify that a scope variable should have one-time binding only?
2828
- What directive would you use to hide elements from the HTML DOM by removing them from that DOM not changing their styling?
2929
- How do you reset a $timeout, $interval(), and disable a $watch()?
30+
- What is $scope in AngularJS?
3031

3132

3233
### 2. Architecture
@@ -50,7 +51,7 @@
5051

5152

5253
### 3. Directives
53-
- What is directive in angularjs?
54+
- What are directives in angularjs?
5455
- List some built-in directives
5556
- Explain difference between 'compile' and 'link' callbacks in directive definition
5657
- List types of scopes directive can have?
@@ -60,6 +61,8 @@
6061
- What is the difference between ng-show/ng-hide and ng-if directives?
6162
- When creating a directive, it can be used in several different ways in the view. Which ways for using a directive do you know? How do you define the way your directive will be used?
6263
- When should you use an attribute Vs an element?
64+
- What is the role of ng-app, ng-init and ng-model directives?
65+
6366

6467

6568
### 4. Filters
@@ -518,11 +521,6 @@ AngularJS directives are a combination of AngularJS template markups (HTML attri
518521
CSS classes) and supporting JavaScript code.The JavaScript directive code defines the template data and
519522
behaviors of the HTML elements.
520523
521-
#### Q. ***What are different ways to invoke a directive?***
522-
Attribute ('A') <span my-directive></span>
523-
Class('C') <span class="my-directive: expression;"></span>
524-
Element ('E') <my-directive></my-directive>
525-
Comment ('M') <!-- directive: my-directive expression -->
526524
527525
#### Q. ***What is difference between $scope and scope?***
528526
$scope - In case of DI, you inject the scope object with the dollar prefix i.e. $scope. The reason is

0 commit comments

Comments
 (0)
0