X Tutup
Skip to content

feat(compiler): introduce schema for elements#3353

Closed
pkozlowski-opensource wants to merge 1 commit intoangular:masterfrom
pkozlowski-opensource:registry_new
Closed

feat(compiler): introduce schema for elements#3353
pkozlowski-opensource wants to merge 1 commit intoangular:masterfrom
pkozlowski-opensource:registry_new

Conversation

@pkozlowski-opensource
Copy link
Copy Markdown
Member

No description provided.

@pkozlowski-opensource
Copy link
Copy Markdown
Member Author

@tbosch this is the re-done PR for elements schema support. I believe that I've addressed all the comments from yesterday: we've got a minimal API / set of changes here to support property bindings to work as today. We can build on top of this later on (events, attributes etc.)

Could you PTAL?

@pkozlowski-opensource pkozlowski-opensource added this to the alpha-33 milestone Jul 29, 2015
@pkozlowski-opensource pkozlowski-opensource added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jul 29, 2015
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes and no.
The method isValidElementPropertyBindings is used for host properties and regular property bindings. For host properties, we should only check DOM properties. Previously we used the knowledge of whether this as an ng component to assume that it is not a custom element, and therefore could call DOM.hasProperty().

For regular property bindings you are right in that for ng components we should only allow properties of that component.

@tbosch tbosch added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jul 29, 2015
@tbosch
Copy link
Copy Markdown
Contributor

tbosch commented Jul 29, 2015

Looks good, except for the comment above. Could you clean this up?

@pkozlowski-opensource
Copy link
Copy Markdown
Member Author

@tbosch removed checks for directive properties on host elements and landed it. Will follow up with issues for missing features (events, attributes) and PRs targeting custom components.

@tbosch
Copy link
Copy Markdown
Contributor

tbosch commented Jul 29, 2015

But you kept the TODO in that place / didn't use the schema...
And could you add a comment why you pass in true when checking the host properties? It's not clear from the code...

@pkozlowski-opensource
Copy link
Copy Markdown
Member Author

@tbosch yes, will sent PRs with additional tests / comments first thing tomorrow. Just wanted to land this one so it doesn't get bit-rotten.

@tbosch
Copy link
Copy Markdown
Contributor

tbosch commented Jul 29, 2015

ok

On Wed, Jul 29, 2015 at 10:47 AM Pawel Kozlowski notifications@github.com
wrote:

@tbosch https://github.com/tbosch yes, will sent PRs with additional
tests / comments first thing tomorrow. Just wanted to land this one so it
doesn't get bit-rotten.


Reply to this email directly or view it on GitHub
#3353 (comment).

@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews cla: yes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup