Skip to content

feat: add support for angular two way data binding #706

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

Merged
merged 12 commits into from
Aug 21, 2019
Merged

Conversation

fifoosid
Copy link
Contributor

No description provided.

@ilhan007
Copy link
Member

ilhan007 commented Aug 2, 2019

@fifoosid I have the context and I agree with the changes, but if there should be comments that it's done to enable two-way data binding, please add that it is for Angular

@@ -327,6 +327,8 @@ class DatePicker extends UI5Element {

this.value = nextValue;
this.fireEvent("change", { value: nextValue, valid: isValid });
// Two way data binding
this.fireEvent("value-changed", { value: nextValue, valid: isValid });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check no-conflict mode (should not fire ui5- for value-changed)

@fifoosid fifoosid changed the title feat: two way data binding feat: add support for angular two way data binding Aug 12, 2019
@@ -1,9 +1,17 @@
import { getNoConflict as getConfiguredNoConflict } from "../InitialConfiguration.js";

const twoWayDataBindingEvents = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

twoWayDataBindingEvents too specific, excludeList or something similar
isTwoWayDataBindingEvent as well, skipPrefix, isEventExcluded or similar

@fifoosid fifoosid merged commit 16820e4 into master Aug 21, 2019
@fifoosid fifoosid deleted the data-binding branch August 21, 2019 12:09
@fifoosid
Copy link
Contributor Author

Fixes #697 and #651

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

Successfully merging this pull request may close these issues.

3 participants