@microsoft/fast-element
Advanced tools
Comparing version 0.15.1 to 0.15.2
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.15.2](https://github.com/Microsoft/fast/compare/@microsoft/fast-element@0.15.1...@microsoft/fast-element@0.15.2) (2020-07-31) | ||
**Note:** Version bump only for package @microsoft/fast-element | ||
## [0.15.1](https://github.com/Microsoft/fast/compare/@microsoft/fast-element@0.15.0...@microsoft/fast-element@0.15.1) (2020-07-23) | ||
@@ -8,0 +16,0 @@ |
@@ -173,3 +173,3 @@ --- | ||
The examples above and those throughout our documentation leverage TypeScript, and in particular, the decorators feature of the language. Decorators are an upcoming feature planned for a future version of JavaScript, but their design is not yet finished. While the syntax for decorator usage is not likely to change in the final version of the feature, some of our community members may feel uncomfortable using this feature at this stage. Fortunately, FAST Elements can be completely defined in Vanilla JS, without using decorators, by leveraging a static `definition` field on your class. The `definition` filed only needs to present the same configuration as the `@customElement` decorator. Here's an example that shows the use of the `definition` field along with a manual call to `define` the element: | ||
The examples above and those throughout our documentation leverage TypeScript, and in particular, the decorators feature of the language. Decorators are an upcoming feature planned for a future version of JavaScript, but their design is not yet finished. While the syntax for decorator usage is not likely to change in the final version of the feature, some of our community members may feel uncomfortable using this feature at this stage. Fortunately, FAST Elements can be completely defined in Vanilla JS, without using decorators, by leveraging a static `definition` field on your class. The `definition` field only needs to present the same configuration as the `@customElement` decorator. Here's an example that shows the use of the `definition` field along with a manual call to `define` the element: | ||
@@ -205,2 +205,2 @@ ```js | ||
The `definition` can also be separated from the class and passed into the `define` call directly if desired. Here's how that would look: `FASTElement.define(MyElement, myDefinition);` | ||
::: | ||
::: |
@@ -5,3 +5,3 @@ { | ||
"sideEffects": false, | ||
"version": "0.15.1", | ||
"version": "0.15.2", | ||
"author": { | ||
@@ -85,3 +85,3 @@ "name": "Microsoft", | ||
}, | ||
"gitHead": "6d194d4d9130816413cb7081e653de69fbe4397a" | ||
"gitHead": "cfaeab3cf9527765baf02122962dbb54c0e07c1b" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
799865