mardi 27 juin 2017

Ember.js 2. Using nested templates is more RAM consuming?

I'm wondering if using nested templates it's very RAM consuming...

Something like this:

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'});
      });
    });
  });
});

is more RAM heavy than this?

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'});
});




Aucun commentaire:

Enregistrer un commentaire