Skip to content

📋 Angular app using signals to display and update data on frontend. The app is styled using Angular Materials. The data displayed is obtained from an array of objects stored in the Robots Service. Robots can be added to and deleted from the list.

Notifications You must be signed in to change notification settings

AndrewJBateman/angular-signals-database

Repository files navigation

⚡ 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

About

📋 Angular app using signals to display and update data on frontend. The app is styled using Angular Materials. The data displayed is obtained from an array of objects stored in the Robots Service. Robots can be added to and deleted from the list.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published