Coder Social home page Coder Social logo

crud-angular11's Introduction

CRUD in Angular11

CRUD example in angular based on

https://medium.com/techiediaries-com/angular-11-crud-tutorial-with-example-9612aee3c32e

Adding PDF with same instructions than link above angular-10-crud-bootstrap-tutorial.pdf

Step 1 — Creating a New Angular 11 Project

Step 2 — Generating Angular 11 CRUD Components and Service

Step 3 — Importing FormsModule and HttpClientModule

Step 4 — Adding Routes for the CRUD Components. Plus the following steps:

$ npm install bootstrap
$ npm install jquery

Modify the angular.json and add:

"styles": [
"./node_modules/bootstrap/dist/css/bootstrap.css",
"src/styles.css"
],
"scripts": [
"./node_modules/jquery/dist/jquery.js",
"./node_modules/bootstrap/dist/js/bootstrap.js"
]

Step 6 — Creating an Angular 10 CRUD Service

Although the services create/update work with 'any' as a parameter, an interface (IProduct) and a class (Product) were added to avoid the use of 'raw' data

Step 7 — Implementing the Angular 10 CRUD Components. This step was split as shown below:

a) Creating a New Product Component
b) Displaying the List of Products Component
c) The Product Details Component

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.