Skip to content

Latest commit

 

History

History
85 lines (58 loc) · 3.11 KB

README.md

File metadata and controls

85 lines (58 loc) · 3.11 KB

⚡ Angular Signals Database

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

📄 Table of contents

📚 General info

  • Angular Material list of robots, showing name, work area & code

📷 Screenshots

Example screenshot

📶 Technologies

💾 Setup

  • Install dependencies using npm i

  • Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

  • Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

💻 Code Examples

  • functions from robots.service.ts to add qnd delete robots
  addRobot(newRobot: Robot): void {
    setTimeout(() => {
      this.robots.update((robots) => [newRobot, ...robots]);
      this.router.navigate(['/']);
    }, 500);
  }

  deleteRobot(code: string): void {
    setTimeout(() => {
      this.robots.update((robots) => robots.filter((rob) => rob.code !== code));
    }, 500);
  }

🆒 Features

  • Angular signals means less code and avoids having to check the entire component tree when there is a state change in just one part of the tree. Presumably Zone.js will be removed from the Angular core bundle once Signals becomes standard.

📋 Status & To-Do List

  • Status: Working
  • To-Do: Nothing

👏 Inspiration

📁 License

  • This project is licensed under the terms of the MIT license.

✉️ Contact

  • Repo created by ABateman, email: gomezbateman@gmail.com