Vrijdag 31/5/2024 om 8u30
te Van der Valk hotel Brussels Airport
Culliganlaan 4b, 1831 Diegem
Node: 22.1.0
git clone --recurse-submodules https://github.com/itenium-be/Angular-Days
cd Angular-Days
npm install -g @angular/cli
cd itenium-socks
npm install
ng serve --open
cd socks-backend
npm install
npm run dev
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
ng test
import { signal, computed } from "@angular/core";
const counter = signal(0);
console.log(counter());
counter.set(1);
counter.update(curValue => curValue + 1);
const derivedCounter = computed(() => {
return counter() * 10;
})
@Component({})
export class CounterComponent {
count = signal(0);
constructor() {
effect(onCleanup => {
console.log(`current value: ${this.count()}`);
onCleanup(() => {
console.log("Perform cleanup action here");
});
});
}
}