{"action":"created","issue":{"url":"https://api.github.com/repos/html-next/flexi/issues/59","repository_url":"https://api.github.com/repos/html-next/flexi","labels_url":"https://api.github.com/repos/html-next/flexi/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/html-next/flexi/issues/59/comments","events_url":"https://api.github.com/repos/html-next/flexi/issues/59/events","html_url":"https://github.com/html-next/flexi/issues/59","id":156179590,"number":59,"title":"sustain assumes component input will be named \"model\"","user":{"login":"bgentry","id":114033,"avatar_url":"https://avatars1.githubusercontent.com/u/114033?v=3","gravatar_id":"","url":"https://api.github.com/users/bgentry","html_url":"https://github.com/bgentry","followers_url":"https://api.github.com/users/bgentry/followers","following_url":"https://api.github.com/users/bgentry/following{/other_user}","gists_url":"https://api.github.com/users/bgentry/gists{/gist_id}","starred_url":"https://api.github.com/users/bgentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgentry/subscriptions","organizations_url":"https://api.github.com/users/bgentry/orgs","repos_url":"https://api.github.com/users/bgentry/repos","events_url":"https://api.github.com/users/bgentry/events{/privacy}","received_events_url":"https://api.github.com/users/bgentry/received_events","type":"User","site_admin":false},"labels":[{"id":318707716,"url":"https://api.github.com/repos/html-next/flexi/labels/feature","name":"feature","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-05-22T23:29:40Z","updated_at":"2017-03-04T00:39:56Z","closed_at":"2017-03-04T00:39:56Z","body":"I was invoking a component like so:\n\n``` hbs\n{{task-list model}}\n```\n\nThat component was expecting the first argument to be called `tasks` and was using [`positionalParams`](https://guides.emberjs.com/v2.5.0/components/passing-properties-to-a-component/#toc_positional-params) so it could be provided as either the first argument or as `tasks=model`.\n\nWhen I converted this component invocation to use `sustain`, I did this:\n\n``` hbs\n{{sustain \"task-list\" model}}\n```\n\nHowever this doesn't work because `sustain` always [assumes](https://github.com/runspired/flexi/blob/302ac7cd59437781f0db8e6e43d0b6c5fbd999fc/addon/lib/sustain.js#L232) that the input to the component will be called `model`. My component and its template were expecting the argument to be called `tasks` instead of `model`, so it wasn't rendering anything.\n\nPerhaps the `sustain` helper should treat input [the same way as the `component` helper](https://github.com/emberjs/ember.js/blob/v2.5.0/packages/ember-htmlbars/lib/keywords/component.js#L12)?\n"},"comment":{"url":"https://api.github.com/repos/html-next/flexi/issues/comments/284109363","html_url":"https://github.com/html-next/flexi/issues/59#issuecomment-284109363","issue_url":"https://api.github.com/repos/html-next/flexi/issues/59","id":284109363,"user":{"login":"rwwagner90","id":2640861,"avatar_url":"https://avatars0.githubusercontent.com/u/2640861?v=3","gravatar_id":"","url":"https://api.github.com/users/rwwagner90","html_url":"https://github.com/rwwagner90","followers_url":"https://api.github.com/users/rwwagner90/followers","following_url":"https://api.github.com/users/rwwagner90/following{/other_user}","gists_url":"https://api.github.com/users/rwwagner90/gists{/gist_id}","starred_url":"https://api.github.com/users/rwwagner90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwwagner90/subscriptions","organizations_url":"https://api.github.com/users/rwwagner90/orgs","repos_url":"https://api.github.com/users/rwwagner90/repos","events_url":"https://api.github.com/users/rwwagner90/events{/privacy}","received_events_url":"https://api.github.com/users/rwwagner90/received_events","type":"User","site_admin":false},"created_at":"2017-03-04T00:39:56Z","updated_at":"2017-03-04T00:39:56Z","body":"Since the man himself says this is unlikely to happy, I am going to close the issue. Feel free to open a PR if you happen to magically make something work @bgentry 😄 "}}
{"actor":{"display_login":"rwwagner90"}}