Comments (6)
@lcpriest at the moment I just ignore tests and wait until set
is implemented
from glimmer-component.
Confirm. this.set()
is what will solve this, but it doesn't exist yet. You would be able to do this:
test('it renders an svg when data is available', async function(assert) {
this.set('data', {
"name": "display",
"children": [
{"name": "DirtySprite", "size": 8833},
{"name": "LineSprite", "size": 1732},
{"name": "RectSprite", "size": 3623},
{"name": "TextSprite", "size": 10066}
]
});
await this.render(hbs`<bar-chart @data={{data}} />`);
assert.ok(this.containerElement.querySelector('svg'));
});
from glimmer-component.
@robbiepitts We are building a suite of glimmer components and this would be key for it. Any timescales on this or possible workarounds for the moment? Happy to help if required.
from glimmer-component.
Just use this.property
. When set
is made available, change them (or they may just work as is going forward).
from glimmer-component.
@andreisebastianc-ccc any recommendations for doing the same for closure actions?
from glimmer-component.
Thanks!
from glimmer-component.
Related Issues (20)
- Can't reference non-configurable properties in template HOT 1
- Type checking errors with this.args HOT 4
- No documented block params HOT 8
- Computed Property Syntax HOT 1
- Async functions cause reference error HOT 6
- Give more descriptive error message when using child component outside of parent's template HOT 2
- Errors in actions are silently swallowed HOT 1
- `@tracked` doesn't play nice HOT 3
- tracked property using "args" not updating HOT 5
- tracked property set in didInsertElement is not triggering a re-render HOT 4
- Symbol object is not available in IE HOT 3
- didUpdate hook called before component is rerendered HOT 1
- Error starting an app following the getting started HOT 4
- Cannot track a property on a referenced object HOT 2
- tracked property (dependent on "args") in child component is out of sync HOT 12
- Glimme throws an error if template starts with `if` HOT 2
- Fragment support HOT 1
- How to render dynamic templates? HOT 3
- Not clear how to debug component tests HOT 1
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 glimmer-component.