4

The AngularDart tutorial (at of the time of this writing), recommends binding component fields to attributes like this:

map: const {
  'max-rating' : '@maxRating',
  'rating' : '<=>rating'
}

However, I see also that Angular has @NgOneWay, @NgTwoWay, and others. I can't find the annotation for @. Which annotation do I want if I want the same semantics as @maxRating ?

Apparently:

@NgOneWay == =>

@NgTwoWay == <=>

@NgOneWayOneTime == =>!

??? == @

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
Seth Ladd
  • 112,095
  • 66
  • 196
  • 279

1 Answers1

4

I think @NgAttr is what you are looking for.

For callbacks there is also @NgCallback == & - just to complete your list.

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