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
== =>!
???
== @
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…