render test
{
"version": "0.8.1",
"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.5.1",
"ember-data": "2.5.2",
"ember-template-compiler": "2.5.1"
}
}
<br>
<hr>
<button {{action 'renderTest'}}>Render Test</button>
{{outlet 'testoutlet'}}
<h1>IN TEST TEMPLATE</h1>
<h1>Welcome to {{appName}}</h1>
<br>
{{#link-to 'testing'}}GOTO Testing{{/link-to}}
<br>
{{outlet}}
<br>
<br>
import Ember from 'ember';
export default Ember.Route.extend({
actions: {
renderTest() {
this.render('test', {
outlet: 'testoutlet'
})
}
}
});
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: 'none'
});
Router.map(function() {
this.route('testing');
});
export default Router;
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});