WHAT ARE THE DIFFERENT SCOPES IN ANGULAR DIRECTIVES?

What are the different scopes in Angular Directives?

There is service scope ($scope) and root scope ($root Scope). The difference between the two is that the former scope always remains binded to a controller’s model and only that model. Root Scope provides shared model data amongst all controllers.

 
 
 
 
 
 
 
 
 
 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>