This repository has been archived by the owner on Dec 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Step 9: convert sub-controllers to TS.
- Loading branch information
1 parent
693437c
commit d6b110b
Showing
4 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
import Controller from "@ember/controller"; | ||
import { filterBy } from "@ember-decorators/object/computed"; | ||
import { Todo } from "todomvc/services/repo"; | ||
|
||
export default class ActiveController extends Controller { | ||
@filterBy("model", "completed", false) todos!: Todo[]; | ||
} |
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
import Controller from "@ember/controller"; | ||
import { filterBy } from "@ember-decorators/object/computed"; | ||
|
||
import { Todo } from "todomvc/services/repo"; | ||
|
||
export default class CompletedController extends Controller { | ||
@filterBy("model", "completed", true) todos!: Todo[]; | ||
} |