Deprecation of views vs. viewName


#1

Hi,

I’m currently using viewName on a {{#link-to}} helper to be able to reference the resulting link view from the parent template (code example below). Does the upcoming deprecation of views in general affect the viewName mechanism in any way?

It is not mentioned in the release notes of 2.0 beta and judging by the current source it seems to be supported in components. But still it’s interesting to know if there are plans to change it.

Code sample:

<ul class="nav navbar-nav">
    <li role="presentation" class={{view.linkOne.active}}>
      {{#link-to 'one' viewName='linkOne'}}First section{{/link-to}}
    </li>
    <li role="presentation" class={{view.linkTwo.active}}>
      {{#link-to 'two' viewName='linkTwo'}}Second section{{/link-to}}
    </li>
</ul>