-
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.
- Loading branch information
1 parent
09f9a29
commit 4126c01
Showing
3 changed files
with
25 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Controller from '@ember/controller'; | ||
import { tracked } from '@glimmer/tracking'; | ||
|
||
export default class ApplicationController extends Controller { | ||
@tracked taskList = ['Task 1', 'Task 2', 'Task 3']; | ||
} |
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,7 +1,11 @@ | ||
{{page-title "TodoList"}} | ||
|
||
{{! The following component displays Ember's default welcome message. }} | ||
<WelcomePage /> | ||
{{! Feel free to remove this! }} | ||
<h1>Todo List</h1> | ||
|
||
{{#each this.taskList as |task|}} | ||
<div> | ||
{{task}} | ||
</div> | ||
{{/each}} | ||
|
||
{{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,12 @@ | ||
import { module, test } from 'qunit'; | ||
import { setupTest } from 'todo-list/tests/helpers'; | ||
|
||
module('Unit | Controller | application', function (hooks) { | ||
setupTest(hooks); | ||
|
||
// TODO: Replace this with your real tests. | ||
test('it exists', function (assert) { | ||
let controller = this.owner.lookup('controller:application'); | ||
assert.ok(controller); | ||
}); | ||
}); |