1

EmberJSは優れたフレームワークであり、その概念に非常に精通しています。ただし、すべての例とスターターキットはRuby(Rakeなど)用です。

例として、Emberと.NET MVCを使用した人はいますか?

更新

これが私がAMDにルーターwを搭載していることを発見した方法です。単純な例でも非常に複雑です。

define(['ember'], function (Ember) {
return Ember.Router.extend({
    root:Ember.Route.extend({
        index:Ember.Route.extend({
            route:'/'
        }),
        contributors:Ember.Route.extend({
            route:'/contributors',
            connectOutlets:function (router) {
                var controller = router.get('applicationController');
                require(['app/controllers/contributors', 'app/views/contributors'],
                    function (contributorsController, contributorsView) {
                        controller.connectOutlet({
                            viewClass:contributorsView,
                            controller:contributorsController.create()
                        });
                    });
            }
        })
    })
});

});

AMDがEmberの優れたソリューションであるかどうかを今考え直しています。トムデールは代替案について言及しましたが、例を提供しませんでした。

4

1 に答える 1

2

私はこの例を作成しましたが、まだ多くのものが欠けています

https://github.com/MilkyWayJoe/hello-ember-router

私が学ぼうとしている間にこれをしたが、しばらく触れていないことに注意してください。

于 2012-09-18T13:42:29.903 に答える