This repository has been archived by the owner on Nov 11, 2024. It is now read-only.
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.
Merge pull request #4 from ryanlabouve/ryanlabouve/fix-endtime
Fixes routing bug with same route, different params
- Loading branch information
Showing
7 changed files
with
71 additions
and
4 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
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