This repository has been archived by the owner on Aug 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
v4 Observables #26
Labels
feature request
New feature or request
Comments
API Proposal// Defining watchable
a7.watchable("name", "value");
// API for Accessing values
a7.watchable("name") //Returns the value of name
//watching for changes
a7.watch("name", function(newValue){
// Executes code when value of "name" changes
}) And also these would be accessable from anyScope |
alternative// Defining watchable
a7.watchable("name").set;
// API for Accessing values
a7.watchable("name").val //Returns the value of name
//watching for changes
a7.watchable("name").onChange(function(newValue){
// Executes code when value of "name" changes
}) |
or//Defining
var a = new a7.watchable
//Setting
a.set("Example")
// getting
a.value
// listening for changes
a.onChange(function(newValue){
console.log(newValue)
}) |
anton7r
changed the title
v4 "global" watchable variables and component specific
v4 Observables
Sep 16, 2019
yes i was talking about observables |
added |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Ive found some problems with some of the systems that we've got in place, quite easy to fix but also time consuming.
"global" and component specific variables should be a part of the fix
The text was updated successfully, but these errors were encountered: