-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http://guides.emberjs.com/v1.10.0/getting-started/adding-a-route-and-template/ `ember g route todos --type resource --path '/'`
- Loading branch information
1 parent
a17bdec
commit fb670bc
Showing
5 changed files
with
71 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import Ember from 'ember'; | ||
|
||
export default Ember.Route.extend({ | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1 @@ | ||
|
||
<section id="todoapp"> | ||
<header id="header"> | ||
<h1>todos</h1> | ||
<input type="text" id="new-todo" placeholder="What needs to be done?" /> | ||
</header> | ||
|
||
<section id="main"> | ||
<ul id="todo-list"> | ||
<li class="completed"> | ||
<input type="checkbox" class="toggle"> | ||
<label>Learn Ember.js</label><button class="destroy"></button> | ||
</li> | ||
<li> | ||
<input type="checkbox" class="toggle"> | ||
<label>...</label><button class="destroy"></button> | ||
</li> | ||
<li> | ||
<input type="checkbox" class="toggle"> | ||
<label>Profit!</label><button class="destroy"></button> | ||
</li> | ||
</ul> | ||
|
||
<input type="checkbox" id="toggle-all"> | ||
</section> | ||
|
||
<footer id="footer"> | ||
<span id="todo-count"> | ||
<strong>2</strong> todos left | ||
</span> | ||
<ul id="filters"> | ||
<li> | ||
<a href="all" class="selected">All</a> | ||
</li> | ||
<li> | ||
<a href="active">Active</a> | ||
</li> | ||
<li> | ||
<a href="completed">Completed</a> | ||
</li> | ||
</ul> | ||
|
||
<button id="clear-completed"> | ||
Clear completed (1) | ||
</button> | ||
</footer> | ||
</section> | ||
|
||
<footer id="info"> | ||
<p>Double-click to edit a todo</p> | ||
</footer> | ||
|
||
{{outlet}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<section id="todoapp"> | ||
<header id="header"> | ||
<h1>todos</h1> | ||
<input type="text" id="new-todo" placeholder="What needs to be done?" /> | ||
</header> | ||
|
||
<section id="main"> | ||
<ul id="todo-list"> | ||
<li class="completed"> | ||
<input type="checkbox" class="toggle"> | ||
<label>Learn Ember.js</label><button class="destroy"></button> | ||
</li> | ||
<li> | ||
<input type="checkbox" class="toggle"> | ||
<label>...</label><button class="destroy"></button> | ||
</li> | ||
<li> | ||
<input type="checkbox" class="toggle"> | ||
<label>Profit!</label><button class="destroy"></button> | ||
</li> | ||
</ul> | ||
|
||
<input type="checkbox" id="toggle-all"> | ||
</section> | ||
|
||
<footer id="footer"> | ||
<span id="todo-count"> | ||
<strong>2</strong> todos left | ||
</span> | ||
<ul id="filters"> | ||
<li> | ||
<a href="all" class="selected">All</a> | ||
</li> | ||
<li> | ||
<a href="active">Active</a> | ||
</li> | ||
<li> | ||
<a href="completed">Completed</a> | ||
</li> | ||
</ul> | ||
|
||
<button id="clear-completed"> | ||
Clear completed (1) | ||
</button> | ||
</footer> | ||
</section> | ||
|
||
<footer id="info"> | ||
<p>Double-click to edit a todo</p> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { | ||
moduleFor, | ||
test | ||
} from 'ember-qunit'; | ||
|
||
moduleFor('route:todos', { | ||
// 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); | ||
}); |