![](/img/trans.png)
[英]How to implement Ember-Validations in Ember-App-Kit(EAK)
[英]In Ember App Kit (EAK) how do you change the name of the application
从默认值:
var App = Ember.Application.create()
至:
var Something = Ember.Application.create()
我想知道进行此更改的适当位置。
Ember App Kit使用ES6模块(JS编程的未来)。 EAK利用ES6模块编译器将ES6语法转换为AMD模块。 您可能不需要将所有内容都塞在全局变量中。
index.html
的以下行是您的Ember应用启动的位置
window.Somthing = require('something/app')['default'].create(ENV.APP);
其中的something
是modulePrefix 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.