GithubHelp home page GithubHelp logo

deborah-mcvey / angular-17-crud Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 152 KB

Angular 17 CRUD example tutorial

Home Page: https://www.bezkoder.com/angular-17-crud-example/

TypeScript 64.13% HTML 34.48% CSS 1.39%
angular17 bootstrap4 css html typescript visual-studio-code rxjs7 ngx-pagination

angular-17-crud's Introduction

Angular17Crud

This project was generated with Angular CLI version 17.0.8.

Development server

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

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

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

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

To be read..., tutorial from: https://www.bezkoder.com/angular-17-crud-example/ from December 20, 2023. Technology: Angular 17 RxJS 7 Bootstrap 4 angular 17 globally installed in cmd, project set up in VS Code, VS terminal: cd to folder on my computer create project, cli commands: ng new angular-17-crud --no-standalone --no-strict --style=css --routing=false , Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? No, open folder, see: no app.routes.ts, no app.config.ts, no app.config.server.ts , Bootstrap framework: npm i [email protected] , angular.json path in styles above styles/css put "../node_modules/bootstrap/dist/css/bootstrap.min.css", generate models, components, and services listed on tutorial, include --skip-tests on each generated, app.module.ts: import FormsModule and HttpClientModule, add app-routing.module.ts: define routes, app.component.html: replace with example text with bootstrap navbar, app.module.ts: import routeroutlet, tutorial.model.ts: export class, tutorial.service.ts: constructor Http, get, create, update, delete, find, 3 methods: getAll(), deleteAll(), findByTitle(), add-tutorial.component.ts (de-bug import paths), add-tutorial.component.html, add-tutorial.component.css for submit-form, new terminal: ng s -o, browser shows black navbar: bezKoder, Tutorial, Add, child component is tutorial-details, tutorial-list.component.ts (de-bug import paths), tutorials-list.component.html, tutorial-details.component.ts (incomplete): import OnInit, Input, and Tutorial, tutorial-list.component.css for list class, add pagination to tutorial-list component by seeing linked example: ngx-pagination 6, tutorial-details.component.ts (complete now): debug import paths, tutorial-details.component.html, tutorial-details.component.css for edit-form class, not compiling (problem routerlink) no pagination yet, npm i ngx-pagination, app.module.ts: import NgxPaginationModule from 'ngx-pagination', tutorials-list.component.html: update HTML, tutorial-list.component.ts: add getRequestParams, update retrieveTutorials, added handlePageChange and handlePageSizeChange, looked at GitHub sourcecode: https://github.com/bezkoder/angular-17-pagination-example/blob/master/src/app/components/tutorials-list/tutorials-list.component.ts, added page, count, pageSize, pagesSizes, https://github.com/bezkoder/angular-17-pagination-example/blob/master/src/app/components/tutorial-details/tutorial-details.component.html, and ts: still error with routerLink, app.module.ts: import AppRoutingModule, removed RouterOutlet, angular.json: added scripts paths

angular-17-crud's People

Contributors

deborah-mcvey 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.