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

two way binding #717

Open
KetanJain6333 opened this issue Jan 30, 2018 · 7 comments
Open

two way binding #717

KetanJain6333 opened this issue Jan 30, 2018 · 7 comments

Comments

@KetanJain6333
Copy link

two binding is not supporting in editable-text="", value is binding only after clicking submit button but it should be two way binded as it happen in angularjs.

@ckosloski
Copy link
Contributor

That is a "feature" of angular-xeditable. That is how it was designed.
What problem are you trying to solve that would require two-way binding?
I will be happy to review any PR's submitted.

@KetanJain6333
Copy link
Author

KetanJain6333 commented Jan 31, 2018 via email

@ckosloski
Copy link
Contributor

Can you add a plnkr or jsfiddle showing your issue?
I don't quite understand what your issue is.
On add, you are logging something and the logging isn't working?
Or is the display of the new row not happening on add?

One observation, I think you need to actually add an object on the push, something like:

$scope.addNewChoice = function() { 
$scope.inserted = {
      name: '',
      email: '',
      number: '' 
    };
  $scope.activeModules['settings/customer-profile/get-customer-details'].profileData.contact.push(inserted); 
 };

@KetanJain6333
Copy link
Author

KetanJain6333 commented Jan 31, 2018 via email

@ckosloski
Copy link
Contributor

I'm sorry, but angular-xeditable is not setup that way.
I can try and help you find a solution to your specific problem if you describe it more or provide a plunkr/jsfiddle.

@KetanJain6333
Copy link
Author

KetanJain6333 commented Feb 3, 2018 via email

@ckosloski
Copy link
Contributor

There is no image attached.
This is the editable row example. Based on your first post, it seems that is what you are trying to do.

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

2 participants