forked from mike-north/ember-perf
-
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.
Adds failing test to same route dif param bug
> The first one is thrown when transitioning between routes with the same name but different params (e.g. from /articles/1 to /articles/2). The error is: mike-north#83
- Loading branch information
1 parent
fb7d288
commit d227442
Showing
6 changed files
with
70 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
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'; | ||
import BaseRoute from '../base'; | ||
|
||
export default BaseRoute.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,5 +1,8 @@ | ||
import Object from '@ember/object'; | ||
import Route from '@ember/routing/route'; | ||
|
||
export default Route.extend({ | ||
|
||
}); | ||
model(params) { | ||
return Object.create({id: params.article_id}); | ||
} | ||
}); |
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,9 @@ | ||
<h1>Availible Articles</h1> | ||
|
||
<ul> | ||
<li>{{#link-to 'articles.article' '1'}}Article 1{{/link-to}}</li> | ||
<li>{{#link-to 'articles.article' '2'}}Article 2{{/link-to}}</li> | ||
<li>{{#link-to 'articles.article' '3'}}Article 3{{/link-to}}</li> | ||
</ul> | ||
|
||
<h2>Article {{model.id}}</h2> |
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