Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

headerTitle and template data #31

Closed
geritol opened this issue Jan 19, 2015 · 3 comments
Closed

headerTitle and template data #31

geritol opened this issue Jan 19, 2015 · 3 comments

Comments

@geritol
Copy link

geritol commented Jan 19, 2015

Template data (set w ironRouter) shows up in content but does not appear in header.

{{#contentFor "headerTitle"}}
    <h1 class="title">{{_id}}</h1> <!-- won't show up -->
{{/contentFor}}
{{#ionView}}
    {{#ionContent}}
        <h1>{{_id}}</h1> <!-- shows up -->
    {{/ionContent}}
{{/ionView}}
@nickw
Copy link

nickw commented Jan 19, 2015

Do you have an ionHeaderBar or ionNavBar in your layout?

@geritol
Copy link
Author

geritol commented Jan 20, 2015

ionNavBar in the layout.

@fpoirier1
Copy link
Contributor

This worked for me.

{{#contentFor region="headerTitle" data=this}}
    <h1 class="title">{{_id}}</h1> <!-- won't show up -->
{{/contentFor}}

 {{#ionView}}
    {{#ionContent}}
       <h1>{{_id}}</h1> <!-- shows up -->
    {{/ionContent}}
{{/ionView}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants