AngularJS: How to pass arguments/functions to a directive?

后端 未结 3 1595
不知归路
不知归路 2020-12-08 06:29

Look at this Fiddle, what do I have to change, that the expressions in the template get evaluated using the arguments I defined in the HTML? The SAVE-button should call the

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-08 07:13

    scope: {
        accept: "&"
    }
    

    Use lowercase letters for function names, otherwise it doesn't work.

提交回复
热议问题