Ember.js 从全局命名空间访问应用程序
我需要能够调试我使用ember cli创建的应用程序,以便它使用ES6模块 如何从Chrome开发者工具的控制台访问应用程序 我希望能够调用如下命令:Ember.js 从全局命名空间访问应用程序,ember.js,ember-cli,Ember.js,Ember Cli,我需要能够调试我使用ember cli创建的应用程序,以便它使用ES6模块 如何从Chrome开发者工具的控制台访问应用程序 我希望能够调用如下命令: App.\uuuu container\uuuu.lookup'controller:index'。获取'students'请随意操作,App的名称显示在App目录中的index.html页面中 window.ExampleApp = require('example-app/app')... 在本例中,应用程序的名称为ExampleApp使
App.\uuuu container\uuuu.lookup'controller:index'。获取'students'请随意操作,App的名称显示在App目录中的index.html页面中
window.ExampleApp = require('example-app/app')...
在本例中,应用程序的名称为ExampleApp使您的应用程序对象在控制台中作为$E变量可用。@kums这非常有用,谢谢Hanks,我完全错过了它,因为当我生成应用程序时,我称它为ember cli test,所以我认为window.EmberCliTest与测试环境有关。。。