我在项目中使用grunt和bower依赖关系管理。我想添加一个外部库:
https://github.com/ninjatronic/angular-base64
问题在于它依赖于Angular#> = 1.0.8而在我的项目中我使用的是1.4.3。也许这不是什么大问题,但我收到了错误
bower ECONFLICT Unable to find suitable version for angular
我用
轻松修复了它"resolutions": {
"angular": "1.4.3"
}
但现在我收到了
的警告angular-base64#2.0.5 depends on angular#>= 1.0.8 which resolved to angular#1.4.1
angular-cookies#1.4.3, angular-resource#1.4.3, angular-route#1.4.3 depends on angular#1.4.3 which resolved to angular#1.4.3
Resort to using angular#1.4.3 which resolved to angular#1.4.3
Code incompatibilities may occur.
我当然可以改为1.4.1,但我认为没有意义。为什么会这样?我应该在某处报告吗?我应该担心不兼容吗?感谢。
答案 0 :(得分:0)
使用
form
Angular var $form = jQuery(this).parents('form'); // use $ prefix to show it's a jQuery object
jQuery('.gform_wrapper').not($form).css('display','none');
jQuery($form).slideDown(); // not sure if you need this line if the form is already showing
依赖没有任何问题,它应该解析为最新版本1.4.3 ATM。