这是我的代码,求教!
angular.module("app",[]).directive('myDirective',function(){
return {
restrict:'AE',
scope:{
myUrl: '@someAttr',
myText:'@'
},
template:'
{{myText}}'
};
});
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
@someAttr是啥,@myUrl?