I want to show some HTML blocks based on the existence of output. I tried this code but it does not work. Did I miss something?
{{#if outlet}}
<table class="col-sm-9">
some content
</table>
<table class="col-sm-3">
{{outlet}}
</table>
{{else}}
<table class="col-sm-12">
some content
</table>
{{/if}}
EDIT:
My script, if I am on a route customers, then outletis hidden, otherwise, if I am on a route customers.create, then it is outletdisplayed. Is there an easy way to do this without touching the router.jsfile?
source
share