What is the annotation equivalent of map: const {'foo':'&foo'} in AngularDart?

梦想与她 提交于 2019-12-20 02:14:07

问题


I see that this StackOverflow question shows how to bind to a field that contains a function:

@NgComponent(
    selector: 'mycomp',
    publishAs: 'ctrl',
    map: const {
      'myfunc' :'&myfunc'
    }
)
class MyComponent {
    Function myfunc;

However, it is recommended to use annotations to declare what fields are bound, and how. I see @NgOneWay (=>) and others, but I don't see an annotation for &myfunc.

What annotation should I use?


回答1:


Ok, just saw you created a new question for this one:

For callbacks & use @NgCallback



来源:https://stackoverflow.com/questions/21422866/what-is-the-annotation-equivalent-of-map-const-foofoo-in-angulardart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!