What is Scope Parameter in AngularJS?

0 votes
What's the use of Scope Parameter in isolated scope?
Feb 5 in Angular by kartik
• 1,910 points
22 views

1 answer to this question.

0 votes

Hey @kartik,

Scope Parameter is a collection of various symbol that is used to  communicate between isolated scope and its parent scope.

The Various Scope Parameter are- {@,=,&}

1. @

  •        It is used to pass the string value to the directive scope
  •        One way to the directive scope
  •        String could be interpolate string.

2.=

  •        It is used to pass an object to the directive scope.
  •       Two way binding between parent and directive scope

3.&

  •       It is used to enable function to be access to its directive scope. 
  •      Directive can executed the function passed to it.
There is another way to communicate between isolated scope and its parent scope simply by using $parent but this is not good practice to access data of parent scope.
answered Feb 5 by Niroj
• 3,230 points

Related Questions In Angular

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

What is $watch() and it's use in AngularJS?

$watch() function is used to watch the ...READ MORE

answered Feb 3 in Angular by anonymous
• 3,230 points
31 views
+1 vote
1 answer

What is the relationship between angularjs Scope with controller/view?

Let us consider the below block: <div ng-controller="emp"> ...READ MORE

answered Jan 20 in Web Development by Niroj
• 3,230 points

edited Jan 21 by Niroj 29 views
+1 vote
1 answer

What is css box module?

Hey, All the element present in html follows ...READ MORE

answered Jan 20 in Web Development by Niroj
• 3,230 points

edited Jan 21 by Niroj 30 views
0 votes
1 answer

Explain the difference between visibility:hidden; and display:none?

hii, visibility:hidden; and display:none are totally different used ...READ MORE

answered Jan 20 in Web Development by Niroj
• 3,230 points
57 views
+1 vote
1 answer

How to access the Angularjs scope of a particular html element from our console?

Hello, You should follow the below steps:-- 1.Compile and ...READ MORE

answered Jan 21 in Web Development by Niroj
• 3,230 points

edited Jan 21 by Niroj 31 views
0 votes
1 answer

What is isolated Scope in AngularJs?

Hello kartik, As we know Scope is a ...READ MORE

answered Feb 5 in Angular by Niroj
• 3,230 points
14 views
0 votes
1 answer

What is transclusion Scope in AngularJs?

hey @kartik, Let me start with What is ...READ MORE

answered Feb 6 in Angular by Niroj
• 3,230 points
11 views