Stub new template
This commit is contained in:
Родитель
b80eb737e8
Коммит
69276f11e1
|
@ -0,0 +1,7 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Route.extend({
|
||||
redirect: function() {
|
||||
this.transitionTo('podcasts');
|
||||
}
|
||||
});
|
|
@ -1 +1,3 @@
|
|||
<h1>High Fidelity</h1>
|
||||
|
||||
{{outlet}}
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
<h2>Podcasts</h2>
|
||||
|
||||
{{#linkTo 'podcasts.new'}}Add New Podcast{{/linkTo}}
|
||||
{{outlet}}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
<h2>Add New Podcast</h2>
|
||||
|
||||
{{outlet}}
|
|
@ -0,0 +1,11 @@
|
|||
import { moduleFor, test } from 'ember-qunit';
|
||||
|
||||
moduleFor('route:application', 'Unit | Route | application', {
|
||||
// Specify the other units that are required for this test.
|
||||
// needs: ['controller:foo']
|
||||
});
|
||||
|
||||
test('it exists', function(assert) {
|
||||
var route = this.subject();
|
||||
assert.ok(route);
|
||||
});
|
Загрузка…
Ссылка в новой задаче