Git Product home page Git Product logo

angular-todo's Introduction

angular-todo

Built With

Getting Started

Prerequisites

Project Setup (VS Code)

  • Angular

    • Install Angular CLI globally (one time setup)
    npm install -g @angular/cli
    ng version
    • Open project in vsCode (command run in the project directory)
    code .
    • Create Angular App
    ng new todo-list
    ng serve
    • Install Bootstrap
    npm i bootstrap
  • Create new Angular Component

    ng generate component component-name
    • Create new Angular Service
    ng generate service service-name

Topics practiced to get things done

Angular

  • Project Structure
  • Component Structure / Creation
  • Data Binding
  • List Iteration
  • Services
  • Dependency Injection
  • Event Handling

Error messages for future reference

❌ Error: Invalid Character (typing ng --version in the terminal)
Solution: Use bash (workaround)
❌ Error: Property 'name' has no initializer and is not definitely assigned in the constructor.
Solution: Add "strictPropertyInitialization": false in the compiler options of the tsconfig.json or a default value to the property.
❌ Error: Can't bind to 'ngModel' since it isn't a known property of 'input'.
Solution: Add FormsModule and ReactiveFormsModule to the imports array in app.module.ts.

angular-todo's People

Contributors

marcellpaganini 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.