We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Before the render finishes, during the afterModel hook, my DOM looks like this:
<!-- EMBER_CLI_FASTBOOT_TITLE --><script glmr="%cursor:0%"></script><!--%+b:7%--> <meta name="ember-cli-head-start" content=""><!--%+b:8%--> <!--%+b:9%--><!----><!--%-b:9%--> <!--%+b:9%--><!----><!--%-b:9%--> <!--%+b:9%--> <title><!--%+b:10%-->My Super Project Title<!--%-b:10%--></title> <!--%-b:9%--> <!--%+b:9%-->
Which is causing the title of the tab to momentarily be <!--%+b:10%-->
<!--%+b:10%-->
I just upgraded to Ember 2.5.1:
DEBUG: ------------------------------- vendor.js:17027 DEBUG: Ember : 3.5.1 vendor.js:17027 DEBUG: Ember Data : 3.5.0 vendor.js:17027 DEBUG: jQuery : 3.3.1 vendor.js:17027 DEBUG: Ember Simple Auth : 1.7.0 vendor.js:17027 DEBUG: -------------------------------
The issue seems to be described here: glimmerjs/glimmer-vm#796
The suggested fix is to use triple curlies in the in-element component. Which seems bad.
in-element
The text was updated successfully, but these errors were encountered:
I came up with the following hack:
app/components/head-layout.js:
import { computed } from '@ember/object'; import { htmlSafe } from '@ember/string'; import { inject as service } from '@ember/service'; import HeadLayoutComponent from 'ember-cli-head/components/head-layout'; export default HeadLayoutComponent.extend({ headData: service(), titleTag: computed('headData.title', function() { return htmlSafe(`<title>${this.get('headData.title') || ''}</title>`); }), });
app/templates/head-layout.hbs:
{#-in-element headElement}} <meta name="ember-cli-head-start" content=""> {{{titleTag}}} {{head-content}} <meta name="ember-cli-head-end" content=""> {{/-in-element}}
Sorry, something went wrong.
No branches or pull requests
Before the render finishes, during the afterModel hook, my DOM looks like this:
Which is causing the title of the tab to momentarily be
<!--%+b:10%-->
I just upgraded to Ember 2.5.1:
The issue seems to be described here: glimmerjs/glimmer-vm#796
The suggested fix is to use triple curlies in the
in-element
component. Which seems bad.The text was updated successfully, but these errors were encountered: