O'Reilly logo
  • Patrick S thinks this is interesting:

The scope option in a directive is used to declare and accept values that are passed to the directive as attributes. In our case, we'll create a scope variable named permissions, as highlighted in our app/directives.js file:

scope.username = "John Doe"
scope: {
  permissions: '@'
controller: function($scope) {

An obvious question is: what's the @