Skip to content

Instantly share code, notes, and snippets.

@tim-evans
Created February 19, 2015 20:39
Show Gist options
  • Save tim-evans/ee1069835abf5dab7f23 to your computer and use it in GitHub Desktop.
Save tim-evans/ee1069835abf5dab7f23 to your computer and use it in GitHub Desktop.
Document Title component
import Ember from "ember";
export default Ember.Component.extend({
isVirtual: true,
tagName: '',
render: function (buffer) {
let titleTag = document.getElementsByTagName('title')[0];
this._morph = buffer.dom.appendMorph(titleTag);
this._super.apply(this, arguments);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment