Skip to content
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

Can not set null to object properties #204

Closed
danfma opened this issue Oct 28, 2015 · 4 comments
Closed

Can not set null to object properties #204

danfma opened this issue Oct 28, 2015 · 4 comments

Comments

@danfma
Copy link

danfma commented Oct 28, 2015

I think that a behavior is incorrect with the aurelia bindings. When you have a binded property with an object and try to assign null to it, the Aurelia will accept null for the first time and than set an anonymous object as the new value in sequence. So this simple code will never work.

Check the plunker here: http://plnkr.co/edit/OpNfWu

Just do the following steps with the console opened:

  1. Create a car;
  2. Destroy the car;
  3. Check the car.

You will see that even if I set the car to null it will be recreated. The zombie object always arises again.

@alvarezmario
Copy link

you know that you can do import {Spouse, Individual} from "models/index"; if the models is a direct subdirectory of src. Same with features...

@danfma
Copy link
Author

danfma commented Oct 28, 2015

Good hint!

@jdanyow
Copy link
Contributor

jdanyow commented Oct 28, 2015

@jdanyow
Copy link
Contributor

jdanyow commented Oct 29, 2015

Closing this one- will continue the discussion in #205

@jdanyow jdanyow closed this as completed Oct 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants