javascript 用于 AngularJS 的 batarang Chrome 扩展似乎已损坏

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23506526/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-28 01:01:11  来源:igfitidea点击:

batarang Chrome extension for AngularJS appears broken

javascriptangularjsgoogle-chrome-extensionbatarang

提问by kzoom

(I added this post to a long series at Github of similar/recent experiences. I'm hoping someone here has an answer.)

(我将此帖子添加到 Github 上类似/最近经历的一个长系列中。我希望这里有人有答案。)

Oh, good, I'm not just stoopid.

哦,很好,我不只是愚蠢。

Trying to learn Angular on my own, from a book. When it calls out the use of batarang to show scope and models for a small sample script, and I fire up batarang, all I get is 'Scopes' over 'Scope()' on the left, and 'Models' over 'Select a scope to view its models.' and an 'Enable Inspector' button below that. Yes, I checked the box on the 'Enable' tab.

试图从一本书中自己学习 Angular。当它要求使用batarang 来显示一个小示例脚本的范围和模型时,我启动了batarang,我得到的只是左侧“Scope()”上的“Scopes”,以及“Select a”上的“Models”范围查看其模型。以及下方的“启用检查器”按钮。是的,我选中了“启用”选项卡上的复选框。

None of it seems to do anything.

它似乎没有做任何事情。

On the 'Models' tab, clicking 'Scope()' (per the instructions on the 'Help' tab) does nothing, nor does clicking anything else. Weirdly, under the Options tab, I can check Show applications, Show bindings and Show scopes, These make pretty (and pretty useless) boxes around sections of the script's resulting page, above the dev tools pane, but all the checks clear as soon as I click another tab, like 'Models' (where nothing is working, still), and then come back to the Options tab.

在“模型”选项卡上,单击“范围()”(根据“帮助”选项卡上的说明)不执行任何操作,也不会单击其他任何内容。奇怪的是,在“选项”选项卡下,我可以检查“显示应用程序”、“显示绑定”和“显示范围”,这些在开发工具窗格上方的脚本结果页面的各个部分周围制作了漂亮(且毫无用处)的框,但所有检查都会尽快清除我单击另一个选项卡,例如“模型”(这里仍然没有任何工作),然后返回到“选项”选项卡。

Says I'm on "1.0.2 debilitating-awesomeness"...which is the AngularJS version, I suppose, but really describes batarang so far.

说我在使用“1.0.2 使人衰弱”……我想这是 AngularJS 版本,但到目前为止确实描述了batarang。

PS: I watched the video (http://blog.angularjs.org/2012/07/introducing-angularjs-batarang.html) but it was useless, as it assumes the thing is already working.

PS:我观看了视频(http://blog.angularjs.org/2012/07/introducing-angularjs-batarang.html)但它没用,因为它假设这个东西已经在工作了。

Oh, yea, Win7Pro64SvPk1, Chrome 34.0.1847.131 m 'is up to date'

哦,是的,Win7Pro64SvPk1、Chrome 34.0.1847.131 m '是最新的'

Hope the other recommended tools work better, or at least work.

希望其他推荐的工具能更好地工作,或者至少能工作。

Meanwhile, can anyone confirm the status of batarang? Sure seems a lot of people have a dead extension.

同时,有人可以确认batarang的状态吗?当然,似乎很多人都有一个死的扩展。

回答by Coder X

Try "AngularJS Batarang (Stable)" by "spencer.leland". It works for me.

试试“ spencer.leland”的“ AngularJS Batarang (Stable)”。这个对我有用。

I use AngularJS 1.3.6 and Chrome Ver. 39

我使用 AngularJS 1.3.6 和 Chrome 版本。39

回答by mortsahl

The last release of Batarang was over 10 months ago. It looks like it is no longer supported and does not work with Angular 1.2.x

Batarang 的最后一次发布是在 10 个月前。看起来它不再受支持并且不适用于 Angular 1.2.x

回答by leo

I can confirm that the stable version (https://chrome.google.com/webstore/detail/angularjs-batarang-stable, version 0.4.3) works fine, with Angular 1.3.13 and the Ionic framework.

我可以确认稳定版本(https://chrome.google.com/webstore/detail/angularjs-batarang-stable,版本 0.4.3)在 Angular 1.3.13 和 Ionic 框架下运行良好。

On the "batarang stable" page they even warn that this version works and the newer version doesn't.

在“batarang stable”页面上,他们甚至警告说这个版本有效而​​新版本无效。

I tried the newer version (https://chrome.google.com/webstore/detail/angularjs-batarang, 0.7.4) and it didn't work indeed, half of the options were gone from the UI.

我尝试了较新的版本(https://chrome.google.com/webstore/detail/angularjs-batarang, 0.7.4),但确实没有用,一半的选项从 UI 中消失了。

回答by Kent Bull

I had issues with Batarang while running a page as a file with the file:///protocol. Putting things inside Nginx and running the page from that webserver solved my problem.

在使用file:///协议将页面作为文件运行时,我遇到了 Batarang 问题。将内容放入 Nginx 并从该网络服务器运行页面解决了我的问题。

This probably applies to Apache and any other web server. I am running Batarang 0.8.6 on Chrome Version 45.0.2454.85 (64-bit).

这可能适用于 Apache 和任何其他 Web 服务器。我在 Chrome 版本 45.0.2454.85(64 位)上运行 Batarang 0.8.6。

So, Batarang IS working in the latest version. Batarang working in browser

因此,Batarang 正在使用最新版本。 Batarang 在浏览器中工作

Batarang in Developer Tools

开发者工具中的 Batarang