What is Isolate Scope and why it is required?



What is Isolate Scope and why it is required?..

Answer / chaitanya

By default, directives have access to the parent scope in AngularJS apps. Hence, you can write your custom directive code based on parent scope. If the parent scope changes at all the directive is no longer useful.

The shared scope allows the parent scope to flow down into the directive but the Isolate scope doesn’t allow the parent scope to flow down into the directive.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

How to make an ajax call using angular js?

0 Answers  


Why do we use ts instead of js?

0 Answers  


How to communicate between parent and child components?

0 Answers  


What are angular decorators?

0 Answers  


In how many ways the Data Binding can be done?

0 Answers  


What does tree shaking mean?

0 Answers  


How do ng models work?

0 Answers  


How to format a date in angularjs?

0 Answers  


Explain currency filter?

0 Answers  


Explain module in AngularJS?

0 Answers  


What is the difference between constructor and ngonlnit in angular js?

0 Answers  


Explain the concept of scope hierarchy?

0 Answers  


Categories