.directive(‘customTags2‘,function () { return{ restrict:‘ECMA‘, template:‘<div>2</div>‘, replace:true, priority:-1 } }) .directive(‘customTags3‘,function () { return{ restrict:‘ECMA‘, template:‘<div>3</div>‘, replace:true, priority:0, //小于0的directive都不会执行 terminal:true } })
原文:http://www.cnblogs.com/zhuj/p/7686337.html