Comments (6)
It seems we could really use some doc describing this scenario to help future folks. Would be great if you could help with this @koenbeuk ❤️
from templating.
@koenbeuk thanks for filing this issue. And sorry that somehow I missed it until now. The issue you encountered is because how Aurelia turns a template (or a html file content) into a view factory: it is first passed through native HTML5 parser via simple innerHTML
. This means invalid HTML5 structure (like <td/>
as a direct child of template, but not the only child type) will be processed differently. In this case, it just gets dropped.
What can be done to avoid this is to make sure only TDs are children of <template/>
:
<template>
<td>
<require from="..."></require>
</td>
</template>
Can you try the aboe?
from templating.
Here is an example of it working: https://gist.run/?id=45a7d62b74673e35ed667412085baa7d
from templating.
@bigopon Thanks for the example, I already got it working that way :)
from templating.
@koenbeuk nice. I guess we can close this issue?
from templating.
It's not blocking me anymore, feel free to close if you deem best
from templating.
Related Issues (20)
- Aurelia enhance() will crash if a <compose> element exists within a compiled component HOT 4
- @children Only Working in Chrome HOT 27
- Can't get property from view model in repeater HOT 5
- ElementEvents.subscribe set useCapture to true by default, which is not standard HOT 6
- custom attribute bindable properties with interpolated values won't fire updates HOT 1
- Interface imports in output files HOT 10
- Constructor not called first HOT 4
- child-observation is broken when Zone.js is present on page and wraps MutationObserver HOT 5
- A named slot cannot be used as content for the default slot of a child component HOT 1
- Failing karma tests report incorrect line numbers in console stacktrace
- Custom element creation is confusing HOT 5
- @child() decorator does not work properly in combination with if.bind HOT 2
- Initial range input displayed value rounded when value specified before step HOT 1
- CustomAttribute is not being evaluated when on or inside an if.bind-Element HOT 5
- Custom elements with common base class HOT 3
- Trash files in repo HOT 1
- Upgrading electron caused <compose> to hide other parts of UI HOT 4
- Custom attribute primary property same name as attribute HOT 4
- In aurelia template, it shows "Cannot read properties of null (reading 'insertBefore')" error. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from templating.