Skip to content

Instantly share code, notes, and snippets.

@arm1n
Created January 4, 2017 10:34
Show Gist options
  • Save arm1n/4c6cee885d5ceacab138d1b4d9c24e63 to your computer and use it in GitHub Desktop.
Save arm1n/4c6cee885d5ceacab138d1b4d9c24e63 to your computer and use it in GitHub Desktop.
New Twiddle
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>
{{head-tags headTags=model.headTags}}
{{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",
"ember-cli-meta-tags": "3.0.4"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment