Suppose there is:
$scope.myData = "some data";
The customized directive is like this
<my-directive data-source="myData"></my-directive>
What should I do if I want to get the data of $scope.myData in the directive (data-soucre is a variable parameter, but the form is uncertain. If necessary, it can also be written as scope.myData or the like)
How to write scope mapping
Use @
in diecriveAlready solved, just use property: =attr