Skip to main content

Posts

Showing posts with the label Angular 17.0

Angular 17 basic CRUD Operation using ASP.NET WEB API

 Angular 17 basic CRUP Operation using ASP.NET WEB API:- First create Web API in ASP.NET CORE MVC: here i have created student model class and create API using code first approach. using System.ComponentModel.DataAnnotations; namespace WebApplication2.Models {     public class Student     {         [Key]         public long rno { get; set; }         public string? name { get; set; }     } } Code of APIController using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System.Linq.Expressions; using WebApplication2.Models; namespace WebApplication2.Controllers {     [Route("api/[controller]")]     [ApiController]     public class StudentsController : ControllerBase     {         private readonly StudentDbContext _db;         public StudentsController(StudentDbContex...

Angular Framework 17.0 Tutorials

Angular Framework Introduction .......................................................................................................................................................................   before study this first you learn JS and Jquery:- https://www.shivatutorials.com/search/label/JAVASCRIPT https://www.shivatutorials.com/search/label/Jquery It is a javascript framework which provides an MVC design pattern to develop dynamic web application using HTML and JavaScript Object. MVC means Model, View, and Controller, it is used to distribute the project on different project layer. Angular JS-Support JavaScript code  and Typescript code. structure to write Business Code. The flow of MVC:- MVC flow is the opposite of there name. The First Controller module will be loaded then View will be loaded after that model object will be integrated.                    ...

HttpService in Angular Framework

HttpService in Angular Framework:- It is used to handle HttpRequest from external resources and fetch, post, update and delete from external resources .we will create web API or web services to get data from a remote server, web services, and web API will be consumed by HttpService in Angular Framework. Web Services will be created by Server side script such as Java, PHP,.NET, PYTHON, Ruby, etc, and Consumed by Angular HTTP Service. in  Angular  (currently on  Angular -17) . subscribe () is a method on the Observable type. The Observable type is a utility that asynchronously or synchronously streams data to a variety of components or services that have  subscribed  to the observable. Step to implement Services:- 1)  go into app.module.ts file and register httpService provider import { provideHttpClient } from '@angular/common/http' ; providers : [     provideClientHydration (),     provideHttpClient ()   ] 2)  cre...