10

I have just started using Angular dart and Im going through the online tutorial with examples, and DartEditor is currently striking out NgAttr and NgTwoWay saying they are deprecated, is this the case? and if so what are they being replaced with? the auto docs don't say.

Daniel Robinson
  • 13,806
  • 18
  • 64
  • 112
  • 1
    see also https://github.com/angular/angular.dart/issues/929 (contains not much information yet) and a similar quesition here http://stackoverflow.com/questions/23150818 – Günter Zöchbauer Apr 19 '14 at 11:55

3 Answers3

13

NgAttr, NgOneWay, NgTwoWay, etc. were marked deprecated in preparation to the new bind-* syntax, which is not implemented, yet. So deprecation is arguably a bit premature, since there's no action for users to take, but I guess it is a first warning of the impending major breaking change.

pavelgj
  • 2,246
  • 11
  • 13
4

As of AngularDart 0.13.0, these attributes are no longer marked as deprecated.

As Pavel pointed out, the deprecation was premature. We may re-deprecate them when we have a better way of doing things, but for now you can use them without that nagging feeling that you are doing something wrong.

James deBoer
  • 2,477
  • 15
  • 17
2

There is a new milestone for bind-* syntax which has issues discussing these changes, it may not be actually removed until 1.0 is what I feel.

adarshaj
  • 1,224
  • 1
  • 11
  • 24