What is the default scope value of an AngularJS directive?
Of course, it is not isolated scope. It is true or false.
I can't find any documentation on what it is.
What is the default scope value of an AngularJS directive?
Of course, it is not isolated scope. It is true or false.
I can't find any documentation on what it is.
By default, directives shared the scope of the containing controller. You can specify
scope:true
to have a inherited scope and to get a isolated scope you have to do the followingfrom Understanding scopes.
Using the scope option in directive you can:
scope: true
scope: {}
then you can bind some property to parent scopes with'@', '&', '='
(see this question).scope: false
(default).