angular.dart NgTwoWay 和 NgAttr 已弃用? [英] angular.dart NgTwoWay and NgAttr deprecated?

查看:25
本文介绍了angular.dart NgTwoWay 和 NgAttr 已弃用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用 Angular dart,我正在阅读带有示例的在线教程,DartEditor 目前正在删除 NgAttr 和 NgTwoWay,说它们已被弃用,是这种情况吗?如果是这样,它们将被替换为什么?自动文档没有说.

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.

推荐答案

NgAttrNgOneWayNgTwoWay 等被标记为弃用为尚未实现的新 bind-* 语法做准备.因此,弃用可能有点为时过早,因为用户无需采取任何行动,但我想这是对即将发生的重大重大更改的第一个警告.

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.

这篇关于angular.dart NgTwoWay 和 NgAttr 已弃用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆