You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Template helper to check if the supplied path doesn't match the currently active route's path.
Returns either a configurable String, which defaults to 'disabled', or false.
<liclass="{{isNotActivePath'/home'}}">...</li>
<liclass="{{isNotActivePathpath='/home'}}">...</li>
<liclass="{{isNotActivePathregex='home|dashboard'}}">...</li>
{{#ifisNotActivePath'/home'}}
<span>Show only if '/home' isn't the current route's path</span>
{{/if}}{{#ifisNotActivePathregex='^\\/products'}}
<span>Show only if current route's path doesn't begin with '/products'</span>
{{/if}}
<liclass="{{isNotActivePathclass='is-disabled'path='/home'}}">...</li>
<liclass="{{isNotActivePath'/home'class='is-disabled'}}">...</li>
Arguments
The following can be used by as arguments in isNotActivePath, isNotActiveRoute, isActivePath and isActiveRoute helpers.
Data context, Optional. String or Object with name, path or regex
name {String} - Only available for isActiveRoute and isNotActiveRoute
path {String} - Only available for isActivePath and isNotActivePath