This repository has been archived by the owner on Jul 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Controller and Route classes don't seem to be exporting all their members in the way the Controller is, but I'm lacking the bandwidth to spot the problem.
- Loading branch information
1 parent
8d01dbf
commit 4084edf
Showing
3 changed files
with
26 additions
and
1 deletion.
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,11 @@ | ||
import Controller from '@ember/controller'; | ||
|
||
class MyController extends Controller { | ||
queryParams = ['category']; | ||
category = null; | ||
isExpanded = false; | ||
|
||
toggleBody() { | ||
this.toggleProperty('isExpanded'); | ||
} | ||
} |
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 Route from '@ember/routing/route'; | ||
import Ember from 'ember'; | ||
const { Logger } = Ember; | ||
|
||
class Route1 extends Route { | ||
queryParams = { | ||
category: { | ||
refreshModel: true, | ||
}, | ||
}; | ||
templateName: 'posts/favorite-posts'; | ||
} |
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