Explain Directive scopes in AngularJs ?

devquora
devquora

Posted On: Feb 22, 2018

 

There are three types of directive scopes available in Angular.

  • Parent Scope: is default scope
  • Child Scope:  If the properties and functions you set on the scope are not relevant to other directives and the parent, you should probably create a new child scope.
  • Isolated Scope: Isolated Scope is used if the directive you are going to build is self-contained and reusable. Does not inherit from parent scope, used for private/internal use.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions