-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
fix(ivy): throw on bindings to unknown properties #28537
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kara
added
state: WIP
target: major
This PR is targeted for the next major release
comp: ivy
labels
Feb 5, 2019
kara
changed the title
fix(ivy): throw on bindings to unknown properties
WIP - fix(ivy): throw on bindings to unknown properties
Feb 5, 2019
kara
force-pushed
the
unknown
branch
3 times, most recently
from
February 6, 2019 01:18
b89f9d7
to
a625e1e
Compare
kara
changed the title
WIP - fix(ivy): throw on bindings to unknown properties
fix(ivy): throw on bindings to unknown properties
Feb 6, 2019
kara
force-pushed
the
unknown
branch
2 times, most recently
from
February 6, 2019 01:34
52db716
to
f88848c
Compare
kara
added
action: review
The PR is still awaiting reviews from at least one requested reviewer
and removed
state: WIP
labels
Feb 6, 2019
Oof, seems like this PR uncovered an unrelated bug with inheriting host bindings inappropriately :( |
trotyl
reviewed
Feb 6, 2019
kara
force-pushed
the
unknown
branch
2 times, most recently
from
February 6, 2019 17:18
7200265
to
9f7d76d
Compare
This commit adds a devMode-only check which will throw if a user attempts to bind a property that does not match a directive input or a known HTML property. Example: ``` <div [unknownProp]="someValue"></div> ``` The above will throw because "unknownProp" is not a known property of HTMLDivElement. This check is similar to the check executed in View Engine during template parsing, but occurs at runtime instead of compile-time. Note: This change uncovered an existing bug with host binding inheritance, so some Material tests had to be turned off. They will be fixed in an upcoming PR.
mhevery
approved these changes
Feb 7, 2019
kara
added
action: presubmit
The PR is in need of a google3 presubmit
action: merge
The PR is ready for merge by the caretaker
merge: caretaker note
Alert the caretaker performing the merge to check the PR for an out of normal action needed or note
and removed
action: review
The PR is still awaiting reviews from at least one requested reviewer
action: presubmit
The PR is in need of a google3 presubmit
labels
Feb 7, 2019
merge-assistance: global approval not working |
kara
added a commit
to kara/angular
that referenced
this pull request
Feb 7, 2019
The behavior tested here was fixed by angular#28537, but I missed updating the test in the original PR. This commit turns on the test to run in Ivy mode, using "onlyInIvy" because the timing of the error message is slightly different and requires CD to run.
kara
added a commit
to kara/angular
that referenced
this pull request
Feb 7, 2019
The behavior tested here was fixed by angular#28537, but I missed updating the test in the original PR. This commit turns on the test to run in Ivy mode, using "onlyInIvy" because the timing of the error message is slightly different and requires CD to run.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
action: merge
The PR is ready for merge by the caretaker
cla: yes
merge: caretaker note
Alert the caretaker performing the merge to check the PR for an out of normal action needed or note
target: major
This PR is targeted for the next major release
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit adds a devMode check which will throw if a user
attempts to bind a property that does not match a directive
input or a known HTML property.