Regarding the type of area used, here are some of the guidelines that I adhere to. This knowledge is also related to the search for a number of Angular and third-party directives.
Use the parent domain, if you just need to add some behavior to existing elements of the DOM, ng-click, ng-show, ng-classare good examples of this. These directives do not come with their own template user interface, but simply extend the behavior of the output html elements.
scope:true , . Angular , ng-repeat , $index. .
, scope:{}, , scope . . , , html, .
, https://github.com/angular/angular.js/wiki/Understanding-Scopes, .
, .