I absolutely despise asking what may seem like foolish questions, however, it seems that the AngularJS documentation authors have left out some crucial clarifications.
When constructing a directive, you have the ability to connect variables within your directive to those in your HTML using the following code snippet:
angular.module('app', []).directive('someModule', ['$window', function($window) {
return {
restrict: 'E',
transclude: true,
template: '...',
scope: {
x: '=',
front: '@',
markers: '=?'
},
controller: ...
}]);
I grasp that the '='
following x
signifies x=x
, however, could you please shed some light on the meanings of @
and ?=
?