3

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?

Community
  • 1
  • 1
Seth Ladd
  • 112,095
  • 66
  • 196
  • 279

1 Answers1

3

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

For callbacks & use @NgCallback

Matt B
  • 6,192
  • 1
  • 20
  • 27
Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567