0.0.3 • Published 1 year ago
almost-angular-signals v0.0.3
almost-angular-signals
const count = $signal(0);
count.get(); // 0
count.set(1);
count.get(); // 1
count.update((v) => v + 1);
count.get(); // 2
const count = $signal(0);
count.get(); // 0
count.set(1);
count.get(); // 1
count.update((v) => v + 1);
count.get(); // 2