Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

can-attribute-observable

Package Overview
Dependencies
Maintainers
10
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-attribute-observable - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

.idea/can-attribute-observable.iml

48

can-attribute-observable.md

@@ -47,7 +47,6 @@ @module {Function} can-attribute-observable

<script type="module">
import {Component} from "can";
import { StacheElement } from "can";
Component.extend({
tag: "my-demo",
view: `
class MyDemo extends StacheElement {
static view = `
<input

@@ -64,5 +63,6 @@ on:input:value:bind="this.cardNumber"

on:blur="this.dispatch('payBlur')">Pay</button>
`,
ViewModel: {
cardNumber: "string",
`;
static props = {
cardNumber: String,
cvcNumber: String,
cvcFocus: {

@@ -82,3 +82,2 @@ value({listenTo, resolve}) {

},
cvcNumber: "string",
payFocus: {

@@ -97,5 +96,6 @@ value({listenTo, resolve}) {

}
}
}
});
}
};
}
customElements.define('my-demo', MyDemo);
</script>

@@ -115,8 +115,6 @@ ```

<script type="module">
import {Component} from "can";
import { StacheElement } from "can";
Component.extend({
tag: "pizza-toppings-picker",
view: `
class PizzaToppingsPicker extends StacheElement {
static view = `
<label>

@@ -143,11 +141,15 @@ What pizza toppings do you like?

{{/ for }}
</p>
`,
ViewModel: {
toppings: {default: () => []}
}
});
</p>
`;
static props = {
toppings: {
get default() {
return [];
}
}
};
}
customElements.define('pizza-toppings-picker', PizzaToppingsPicker);
</script>
```
@codepen
{
"name": "can-attribute-observable",
"version": "2.0.1",
"version": "2.0.2",
"description": "Create observables from HTML attributes.",

@@ -5,0 +5,0 @@ "main": "can-attribute-observable",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc