Skip to content

Named view not being cleared when empty template provided #1245

@migajek

Description

@migajek

I'm using the named view for displaying the global menu. There are however several sub-pages where I want the menu to be hidden.
Thus the menu div has default content <div ui-view="menu"> ... some content ..</div> and the content is supposed to be overriden with empty only on those subpages where menu is hidden.
I found out however that setting en empty string as the template content does not work, instead I have to use '&nbsp;':

'named@': {template: ''} // does not work
'named@': {template: '&nbsp;'} // works

full example http://jsfiddle.net/ht8Ag/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions