standalone: true
is now the default
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 start
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");
});
});
}
}