-
Notifications
You must be signed in to change notification settings - Fork 132
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
Error: text is undefined #259
Comments
I have the same problem, when add in my project. I believe they have any conflict with other libraries. Thanks, |
Hi, The issue appears to be located within Temporary fix for this would be to include jQuery in your project, or, if you don't want to do that, simply wrap the text inside of your <mdt-table
table-card="{title: 'Nutritions'}"
mdt-row="{
'data': sl.nutritionList,
'column-keys': ['name', 'calories', 'fat', 'carbs', 'protein', 'sodium', 'calcium', 'iron']
}">
<mdt-header-row>
<mdt-column align-rule="left"><span>Dessert (100g serving)</span></mdt-column>
<mdt-column align-rule="right"><span>Calories</span></mdt-column>
<mdt-column align-rule="right"><span>Fat (g)</span></mdt-column>
<mdt-column align-rule="right"><span>Carbs (g)</span></mdt-column>
<mdt-column align-rule="right"><span>Protein (g)</span></mdt-column>
<mdt-column align-rule="right"><span>Sodium (mg)</span></mdt-column>
<mdt-column align-rule="right"><span>Calcium (%)</span></mdt-column>
<mdt-column align-rule="right"><span>Iron (%)</span></mdt-column>
</mdt-header-row>
</mdt-table> Worked for me. |
I always got this error:
@keyCat adding jQuery(2.1.3) and the solved the problem for me. |
I am experiencing this issue, however, the error is only thrown on after the third column is processed. I've tried re-ordering the columns in case it was an issue with the data or text, but no matter, it only errors after the 3rd iteration. Any ideas? (I've tested everything else suggested so far to no avail). |
Ref: #315 Adding a span tag around the column title does work around this bug as @aeslinger0 identified. I do not have HTML inside the 'span' tags so I guess that is a workaround enough for me. Unsatisfying though 😒 Foo |
I am trying to use the simplest example for a project
where
sl.nutritionList
is a vm found in this view controller.The vm data is displayed correctly, but the header is not, also, an error is thrown eight times:
angular version: "angular": "^1.5.0",
angular-material version: "angular-material": "^1.1.1",
md-data-table version: "md-data-table": "^2.2.0"
Thanks in advance for any help you can offer
The text was updated successfully, but these errors were encountered: