Code Monkey home page Code Monkey logo

angular-todo-app's Introduction

Angular To-do Application

Objective

The aim was to create a To-do list SPA that could retain data even after client browser was refreshed. The to-do list itself must have the following features:

  • Create, Read, Update and Delete capabilities
  • Nested lists could be created

Instructions

  1. Git clone this repository and run npm install or yarn install to install the dependencies
  2. Run ng serve and open your browser to http://localhost:4200/ to view the application

Technologies used and how it works

  • Angular 11
  • HTML/CSS/JavaScript/TypeScript
  • LocalStorage (for data persistence) allowed me to store the todo list as an object in the browser memory
  • A service called TodoService was created as it creates a separate thread from the main thread, and is an intermediary between the browser and the data stored in localStorage.

Challenges faced

  • Creating a nested list requires more research and experimenting.
  • The delete function is not working as intended.
  • The todo list page needs to be refreshed to view latest additions.

Conclusion

Overall this was a fun exercise as I got to dive into building a simple SPA with interesting features. I think my learning of Typescript was eased by some online courses, such as Flutter and Dart, which uses a declarative form of programming. I will definitely explore Angular and Typescript further in the near future!

angular-todo-app's People

Contributors

sayf-t avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.