-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
7,111 additions
and
4,948 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
registry=https://registry.npmjs.org |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{ | ||
"success": 30, | ||
"failed": 0, | ||
"success": 24, | ||
"failed": 8, | ||
"skipped": 0, | ||
"error": false, | ||
"disconnected": false, | ||
"exitCode": 0, | ||
"score": 100, | ||
"exitCode": 1, | ||
"score": 89, | ||
"basicSupport": { | ||
"total": 16, | ||
"failed": 0, | ||
"passed": 16 | ||
}, | ||
"advancedSupport": { | ||
"total": 14, | ||
"failed": 0, | ||
"passed": 14 | ||
"total": 16, | ||
"failed": 8, | ||
"passed": 8 | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
[] | ||
[ | ||
{ | ||
"link": "https://github.com/salesforce/lwc/issues/1904", | ||
"title": "Unnecessary event name restrictions (such as prohibiting hyphens) should be removed", | ||
"meta": "#1904 opened May 28, 2020 by JanMiksovsky" | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
<h4 id="vue-handling-data">Handling data</h4> | ||
<h4 id="lwc-handling-data">Handling data</h4> | ||
|
||
By default, Vue passes all data to Custom Elements as attributes. However, Vue | ||
also provides syntax to instruct its bindings to use properties instead. To bind | ||
to a Custom Element property use <code>:foo.prop="bar"</code>. | ||
When passing data to a custom element, LWC takes a properties-if-available approach where attributes | ||
are set by default, but properties are set when they exist. This heuristical approach involves a | ||
runtime check to see whether a property is defined, and as such, data will be passed as an attribute | ||
if the custom element has not been upgraded. It is the responsibility of the component author to | ||
handle this scenario. | ||
|
||
<h4 id="vue-handling-events">Handling events</h4> | ||
<h4 id="lwc-handling-events">Handling events</h4> | ||
|
||
Vue can listen to native DOM events dispatched from Custom Elements. Its | ||
declarative event bindings only support lowercase and kebab case events. To | ||
listen for any events named with capital letters you must write imperative code. | ||
LWC has no restrictions on event names when listening for events imperatively via the | ||
`addEventListener()` API. When listening for events declaratively in the template, LWC supports | ||
neither arbitrarily capitalized event names (camelCase, CAPSCase, PascalCase, etc.) nor kebab-cased | ||
names. |
Oops, something went wrong.