Skip to content

Instantly share code, notes, and snippets.

@sourvb
Created December 15, 2015 19:25
Show Gist options
  • Select an option

  • Save sourvb/fa5064511bd9ae5a3af6 to your computer and use it in GitHub Desktop.

Select an option

Save sourvb/fa5064511bd9ae5a3af6 to your computer and use it in GitHub Desktop.
so-34294810
<h1>hello</h1>
<br>
<br>
{{outlet}}
<br>
<br>
import Ember from 'ember';
export default Ember.Route.extend({
model: function() {
return {"info": "Something important"};
},
renderTemplate: function() {
this.render('informations/show', {
into: 'popup'
});
}
});
<h1>Original Show Informations template</h1>
<br>
<br>
{{outlet}}
<br>
<br>
<h1>Informations template</h1>
<br>
<br>
{{outlet}}
<br>
<br>
<p>hello124</p>
{{outlet}}
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: config.locationType
});
Router.map(function() {
this.route('informations', function() {
this.route('show');
});
});
export default Router;
{
"version": "0.4.17",
"EmberENV": {
"FEATURES": {}
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.2.0",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/2.2.0/ember-data.js",
"ember-template-compiler": "2.2.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment