您的位置:首页 > Web前端 > AngularJS

Angular指令2

2014-04-15 09:35 267 查看
scope Create a new scope for this directive rather than inheriting the parent scope.

controller Create a controller which publishes an API for communicating across directives.

require Require that another directive be present for this directive to function correctly.

link Programmatically modify resulting DOM element instances, add event listeners, and set up data binding.

compile Programmatically modify the DOM template for features across copies of a directive, as when used in ng-repeat.

Y our compile function can also return link functions to modify the resulting element instances
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: