假设parent scope里有:$scope.myData = "some data";
自定义的directive是这样<my-directive data-source="myData"></my-directive>
如果想在directive获取到$scope.myData的数据该怎么办(data-soucre是一个可变参数 但是形式不定 如果需要也可以写成scope.myData之类)
scope的映射应该怎么写
Use @
Already solved, just use property: =attr
Use @
in diecriveAlready solved, just use property: =attr