"disabled" 属性的使用已被弃用,请使用 "disable"

Use of "disabled" attribute has been deprecated, please use "disable"

自从前几天升级 angularjs 后,我一直收到警告。每当我打开 ui.bootstrap 模式时都会发生。

这是我在 chrome-beta 44 中收到的警告:

angular.js:11655 Use of "disabled" attribute has been deprecated, please use "disable"

这是 angular 最新版本中出现的情况吗?我是否应该再花时间确定发生了什么?这周我花了几个小时研究不同的原因,我只是想知道其他用户是否遇到过这种情况以及他们对此做了什么(如果有的话)?

JS 包含

我尝试了什么?

在写下这个问题并回顾我所做的事情时,我发现了我的问题。

警告是由我的模式视图中的以下指令生成的

<tab heading="Upload" disabled="report.RELEASE !== environment">

将其更改为以下内容解决了问题

<tab heading="Upload" disable="report.RELEASE !== environment">

disable (Defaults: false) : Whether tab is clickable and can be activated. Note that this was previously the disabled attribute, which is now deprecated.

更改已记录 here