Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An alternative to Controllers #499

Open
wants to merge 21 commits into
base: master
from
Open
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Update 0000-controller-migration-path.md

  • Loading branch information...
NullVoxPopuli committed Jun 10, 2019
commit 736374505ec74ab09f004f263c0166d5bace3300
@@ -233,6 +233,7 @@ Given a visit to `/posts`
- lookup `template:posts`
- if a controller exists, the template will be rendered as it is today.
- if a controller does not exist, a template-only component will be assumed, passing the `@model` argument. This will make interop between controllers' templates and template-only component / used-for-route template components inconsistent, so controllers' templates should also get a `@model` argument.
- if a component by the same name exists, it is ignored and must be invoked manually.
- lookup a component named "posts", `component:posts` and `template:components/posts`.
NOTE: if the `template:posts` template was found, this step does not happen.
- this component is invoked _as if_ `template:posts` was defined as `<Posts @model={{this.model}} />`
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.