Using vs partial component for website header in ember.js

It is more a design / best practice question, in Ember 2.x

I am creating a new ember web application, and for the site header I created a separate component site-headerand included it in application.hbs as follows.

application.hbs

{{site-header}}
{{outlet}}

I am trying to figure out if using partial instead of a component might be a better choice for the following reasons:

This component, site-header...

  • only used in application.hbs
  • does not support state
  • has no actionsassociated with it (only some links to change route).
+4
source share
1 answer

, Ember .

+2

Source: https://habr.com/ru/post/1628029/


All Articles