lundi 12 septembre 2016

ember link-to from the component

i am new at EmberJs.

I tried to link from the component "invoices-list" to invoice.

invoices-list.hbs


  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td>**Click here**</td>
  </tr>

    <p>No datas</p>


invoices.hbs



router.js

Router.map(function() {
  this.route('invoices');
  this.route('invoice', { path: '/invoice/:invoice_id' });
});

My problem is, the template will not rendered and i get the error: "props.parentView.appendChild is not a function"

What is wrong?

Thanks for help. Fabian




Aucun commentaire:

Enregistrer un commentaire