var function () { return { restrict:"E", Replace:true, scope:{ "@name", "=address" }, Template:"<div>name:{{ Name}} address:{{address}}</div> " }}
The value of the Name property is preceded by an @ sign, one-way specified, and the name value on the local scope needs to be read from the Name property value of the DOM element that the instruction is applied to, and the name value on the local scope changes if the DOM element's Name property value is changed.
The value of the Address property on the local scope and the Address property value of the DOM element specified by the Address property before the = symbol, two-way connection, the model on the external scope object are required Establish a two-way connection: Changes to the model on the external scope change the Address property on the local scope, and changes to the Address property on the local scope change the model on the external scope.
AngularJS Instruction Learning