The discussion revolves around the usage of {{d-button}} versus <DButton>. david clarifies that the modern ember pattern prefers the use of ‘angle bracket’ syntax, making <DButton> the preferred choice.
pfaffman initially finds this confusing due to an error message referencing <DButton> despite using {{d-button}}. david explains that linting for this syntax is currently only applied to core, not themes or plugins.
The conversation also touches on passing parameters to components. pfaffman notes the difference in passing parameters to <DButton> and <NavItem>. Arkshine explains that the difference in <NavItem> is due to its use of <LinkTo>, which requires separate route and model parameters. Arkshine further clarifies that the difference in parameter passing is because <NavItem> does not involve functions or actions, only passing parameters between components.
<NavItem> calls <LinkTo> that requires the name of the route to link to (route) and the value to fill the dynamic segment (model, an ID here) to be separate.
It makes sense because there is no function/action involved here (and it’s not needed) in NavItem. You only want to pass parameters from component to component. You see what I mean? Sorry, I’m so bad at explaining things.