The difference and relationship between the $scope passed in a controller, and the $scope passed in a directive
问题 What is the difference and relationship between the $scope passed in a controller , and the $scope passed in a directive ? And how would you set these up? 回答1: This is a brief explanation of what is the difference and relationship between the $scope passed in a controller , and the $scope passed in a directive is: As you can see form the basic Angular setup below, $scope is passed to both the Angular Controller and to the Angular Directive . But what are the differences, and how do these