Je me demande si vous utilisez modèles imbriqués, il est très RAM consommer ...Ember.js 2. L'utilisation de modèles imbriqués consomme plus de RAM?
Quelque chose comme ceci:
Router.map(function() {
this.route('index', {path: '/'});
this.route('login');
this.route('authors', {path: 'authors'}, function() {
this.route('author', {path: ':author_id'}, function() {
this.route('book', {path: ':book_id'}, function() {
this.route('cart', {path: 'cart'});
});
});
});
});
est plus RAM lourd que cela?
Router.map(function() {
this.route('index', {path: '/'});
this.route('login');
this.route('authors', {path: '/authors'});
this.route('author', {path: '/author/:author_id'});
this.route('book', {path: '/book/:book_id'});
this.route('cart', {path: '/cart/:cart_id'});
});