Skip to content

Commit b133670

Browse files
committed
feat: confirm rawValue to work as attribute binding
1 parent a354fce commit b133670

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/demo/src/app/cubes/cubes.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ export class Cube {
4141
template: `
4242
<ngt-color *args="['#BFD1E5']" attach="background" />
4343
44-
<ngt-ambient-light [intensity]="0.5" />
44+
<ngt-ambient-light>
45+
<ngt-value rawValue="0.5" attach="intensity" />
46+
</ngt-ambient-light>
4547
<ngt-spot-light [intensity]="0.5" [position]="10" [angle]="0.15" [penumbra]="1" />
4648
<ngt-point-light [intensity]="0.5" [position]="-10" />
4749

libs/angular-three/src/lib/renderer/state.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,6 @@ export class NgtRendererStore {
186186
}
187187

188188
if (name === SPECIAL_PROPERTIES.VALUE) {
189-
// TODO the last time we tried this here, this didn't work
190-
191189
// coercion
192190
let maybeCoerced: any = value;
193191
if (maybeCoerced === '' || maybeCoerced === 'true' || maybeCoerced === 'false') {

0 commit comments

Comments
 (0)