What is Isolate Scope and why it is required?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are http interceptors used for?

416


Just-in-time (jit) compiles the app in the browser, at runtime, as the application loads – this is the standard development approach. Jit is useful for development, but its performance concerns me – how would jit scale for enterprise-level applications?

431


What is an oauth token?

410


Which is better angular material or bootstrap?

421


What is the use of decorators in angular?

402






Explain ng-init directive ?

450


List some difference between angularjs and angular 2?

430


Explain the concept of scope hierarchy?

426


Write ajax call syntax?

431


What can I do with react js?

401


Is angularjs a framework, library or a plugin?

436


Difference between ng-bind and ng-model directive.

446


What are event emitters?

403


What are angular observables?

397


Why did they skip angular 3?

387