Skip to content

Instantly share code, notes, and snippets.

@arm1n
Last active January 4, 2017 09:07
Show Gist options
  • Save arm1n/1fc37a58feb330dac13464562a8a56b9 to your computer and use it in GitHub Desktop.
Save arm1n/1fc37a58feb330dac13464562a8a56b9 to your computer and use it in GitHub Desktop.
ember-page-title issue #37
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Page Title issue #37'
});
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: 'none',
rootURL: config.rootURL
});
Router.map(function() {
this.route('page1');
this.route('page2');
});
export default Router;
import Ember from 'ember';
export default Ember.Route.extend({
});
import Ember from 'ember';
export default Ember.Route.extend({
});
{{page-title "Demo App"}}
<h1>{{appName}}</h1>
<br>
<br>
{{#link-to 'page1'}}Page 1{{/link-to}}
{{#link-to 'page2'}}Page 2{{/link-to}}
{{outlet}}
<br>
<br>
<title>{{model.title}}</title>
{{page-title "Page 1"}}
<div>Page 1</div>
{{page-title "Page 2"}}
<div>Page 2</div>
{
"version": "0.10.7",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.6.2",
"ember-data": "2.6.2",
"ember-template-compiler": "2.6.2",
"ember-testing": "2.6.2"
},
"addons": {
"ember-page-title": "3.1.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment