Skip to content

iteniums full day Angular immersion

Notifications You must be signed in to change notification settings

itenium-be/Angular-Days

Repository files navigation

Angular Days

Vrijdag 31/5/2024 om 8u30
te Van der Valk hotel Brussels Airport
Culliganlaan 4b, 1831 Diegem

Setup

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

Backend

cd socks-backend
npm install
npm run dev

Scaffolding

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.

Testing

ng test

More Challenges!?

Signals

Example

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;
})

With Effect

@Component({})
export class CounterComponent {
  count = signal(0);

  constructor() {
    effect(onCleanup => {
      console.log(`current value: ${this.count()}`);
      onCleanup(() => {
        console.log("Perform cleanup action here");
      });
    });
  }
}

Existing itenium sessions

About

iteniums full day Angular immersion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published