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

How to pass data into modal template? #21

Open
alexzaporozhets opened this issue Jan 9, 2015 · 1 comment
Open

How to pass data into modal template? #21

alexzaporozhets opened this issue Jan 9, 2015 · 1 comment

Comments

@alexzaporozhets
Copy link

  this.route('...', {
    path: '/publisher',
    data: function () {
      return {
        proposals: Proposals.getAllProposals()
      }
    }
  });
    <form>
        <div class="form-group">
            <label for="exampleInputEmail1">Select proposal</label>
            {{proposals}}
            <select id="exampleInputEmail1" class="form-control">
                <option>[Create new]</option>
                {{#each proposals}}
                    <option>{{title}}</option>
                {{/each}}
            </select>
        </div>
@rjsmith
Copy link
Contributor

rjsmith commented Jan 21, 2015

Pass the data context in the doc property.

Waiting for @pahans to merge my pull request for README.md that explains this: #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants