import { createReducer,on } from "@ngrx/store"; import { cart } from "./cart.model"; import { loadData,addCart,updateCart,deletCart } from "./action"; import { error } from "console"; import { InitialState } from "@ngrx/store/src/models"; import { Action } from "rxjs/internal/scheduler/Action"; export interface cartsState { carts:cart[]; error:string; } export const initalState:cartsState = { carts:[], error:'' } export const cartReducer = createReducer( initalState, on(addCart,(state,{cartItems})=> ({...state,carts:[...state.carts,cartItems]})), on(updateCart,(state,{cartItem})=>({...state,carts:state.carts.map((x)=>x.id === cartItem.id?cartItem:x)})), on(deletCart,(state,{id})=>({...state,carts:state.carts.filter(y=>y.id !== id)})) ) or function method without using on optional you can try but above one is latest method using on without on method export function cartReducer(state = this.InitialState,action:any):cartsState{ switch(action.type){ // state is remain same only new state will be create so only using spread method Here case addCart.type: return{...state,carts:[...state.cart,action.cart]} } export const cartReducer = createReducer( initalState, on(addCart, (state,{cartItems}) => ({ ...state, carts:[...state.carts,cartItems] })), );
@isatiuak382722 күн бұрын
make video in english
@virutchamtechs970021 күн бұрын
I you need whole ngrx in english how
@isatiuak382721 күн бұрын
@@virutchamtechs9700 what are you trying to say??? i don't understand write properly.
@virutchamtechs970018 күн бұрын
I asked if you need a complete tutorial for NGRX in English.
How to contact you? I've a work in angular, happy to pay. Would you be able to help?
@RajapandiKECEАй бұрын
Thank you, mam Finally, the video I asked for has arrived 😊...
@KarthickRajendran-y2vАй бұрын
Nice explanation. Expecting more videos from you on ngrx.
@virutchamtechs9700Ай бұрын
Sure next video is in progress soon it will arrive
@PLATO-en5kpАй бұрын
thanks🤩
@virutchamtechs9700Ай бұрын
You're welcome 😊
@jagadeeshvbilzerian7438Ай бұрын
Vanakkam mam Cross-origin request blocked error proxy CLI method la resolve panna oru video podunga mam I hope you
@virutchamtechs9700Ай бұрын
Sure
@RajapandiKECE2 ай бұрын
Hi Mam, kindly Upload... Angular State Management NgRx Topic
@virutchamtechs97002 ай бұрын
Sure
@kannank-j5p2 ай бұрын
ngOnChanges(){ this.parentData.count } nu kudutha work aakuumla sis
@RajapandiKECE2 ай бұрын
Hi , I want to Angular Redux videos..pls
@virutchamtechs97002 ай бұрын
Sure
@RajapandiKECE2 ай бұрын
Mam Realy awesome ....Your classes 👏
@virutchamtechs97002 ай бұрын
Thanks
@RajapandiKECE2 ай бұрын
@@virutchamtechs9700 "I want to watch a video on NgRx state management with Angular." Kindly pls upload
@manii39302 ай бұрын
Your teaching is very well. Keep it. I have followed the same logic. But error showing while getting response from 'assets/config.json' and error as ""Http failure response for localhost:4200/assets/config.json: 404 Not Found"" & { "headers": { "normalizedNames": {}, "lazyUpdate": null }, "status": 404, "statusText": "Not Found", "url": "localhost:4200/assets/config.json", "ok": false, "name": "HttpErrorResponse", "message": "Http failure response for localhost:4200/assets/config.json: 404 Not Found", "error": "<!DOCTYPE html> <html lang=\"en\"> <head> <meta charset=\"utf-8\"> <title>Error</title> </head> <body> <pre>Cannot GET /assets/config.json</pre> </body> </html> " } and template as below as <div *ngIf="empData"> <div>Emp Name: {{empData.name}}</div> <div>Place: {{empData.place}}</div> <div>Designation: {{empData.designation}}</div> <div>Salary: {{empData.salary}}</div> </div>
@RKGamer-se2ku2 ай бұрын
Indexedb angular la eppati use panrathu nu podunka
@virutchamtechs97002 ай бұрын
Sure
@PLATO-en5kp2 ай бұрын
thankk uuuuuuu
@manii39303 ай бұрын
Your explanation is very nice. Keep this sister. After set property binding,image not displaying my code in ts file is imageUrl="assets/logo.png"; and In html file as "<img [src]="imageUrl"/>".And also not working without property binding like <img src="assets/logo.png"/>.Any thing,Image not displaying.But image is available in assets folder.How to rectify this?
@virutchamtechs97003 ай бұрын
Bro. You path is wrong so only not displaying for test purpose. You can copy full path of image and check then you know what mistake you done. According to folder structure path will be different like example ../../ assets/ images some time for another component it will differ ./assets/img.png
@ncyn2122-h2r4 ай бұрын
Great explanation
@virutchamtechs97003 ай бұрын
Thanks
@spmyasar4 ай бұрын
nice explanation getting easy understand
@vijayamurugan20234 ай бұрын
thank you so much Mam
@virutchamtechs97004 ай бұрын
Your asked about interview questions video. If you learn all topics of angular itself enough to attend interview. Prepare angular well goes to interview bit website for angular recall the things. It will help don't learn questions a nd answer if you know all topics about angular that's enough to attend interview
@ashkkarsidhik9234 ай бұрын
Mam angular 17 la app.module page varamaatingudhu, so Formsmodule and reactivemodule endha page la import pannanum please sollunga?
@virutchamtechs97004 ай бұрын
Yentha component form module use pannrom same component import it and add in the import inside of @ component
@virutchamtechs97004 ай бұрын
Standalone video is there check that for refer kzbin.info/www/bejne/h3enYop4jNl4hac
@ashkkarsidhik9234 ай бұрын
Mam ngForm use panna no directives found nu varudhu adhu epdi solve panradhu?
@virutchamtechs97004 ай бұрын
Import the library I explain in the video also watch properly use this import { FormGroup, FormControl, Validators, FormBuilder } from '@angular/forms';
@ashkkarsidhik9234 ай бұрын
@@virutchamtechs9700 mam angular17 la app.module page varala, so namma formsmodule enga register panradhu?
@prasathk14144 ай бұрын
need package.json and angular.json explanation mam
@virutchamtechs97004 ай бұрын
Sure
@vijayamurugan20235 ай бұрын
Thanks so much mam
@virutchamtechs97005 ай бұрын
It's my pleasure
@sangeethas37815 ай бұрын
Good explanation
@navinknd5 ай бұрын
Nice explanation, Nan angular developer ah 3 years work paniruken enaku oru prblm eputi documentation write pantrathu angular application ku help panunga. Like Code document if possible project documentation oru idea venum eduku reply paninga Ilana edu related ah oru video potta rompa useful ahh irukum
@virutchamtechs97005 ай бұрын
What kind of documentation need I am not getting actually for project we create SDD [email protected] can you sent details to my mail I will check it
@anithaalagar16295 ай бұрын
Why using 3 components mam
@virutchamtechs97005 ай бұрын
Just for understanding, I made this so you can make it into a single component. When it comes to the project, it may work out like this, so I thought of it in this way.
@anithaalagar16295 ай бұрын
Thank you for sharing mam ☺️☺️
@anithaalagar16295 ай бұрын
Thank you so much mam... clearly understand this hook 💥
@vijayamurugan20235 ай бұрын
please update rxjs details video mam
@virutchamtechs97005 ай бұрын
Sure as soon as possible by
@vijayamurugan20235 ай бұрын
Your videos are very good... pls update project videos... and angular.. interview questions pls update...
kzbin.info/www/bejne/bnyTon-qlJ5rpLs check it out you will get clear about property
@virutchamtechs97006 ай бұрын
kzbin.info/www/bejne/bnyTon-qlJ5rpLs check this video you get clear info of property
@virutchamtechs97006 ай бұрын
Try example which done you know how it's work also
@japarsg8 ай бұрын
Epdi update value ah send pandrathu without two way binding.. Nan default oru value ah send pandren, aprm page load aanathuku aprm oru method la same variable ah update.. But updated value pogala. Athu epdi pandreathu
@virutchamtechs97008 ай бұрын
Use observable method that also I attached video kzbin.info/www/bejne/rWO0iKdpYtypoKM
@Mrtomboy1438 ай бұрын
❤
@virutchamtechs97005 ай бұрын
Thanks
@jagadeeshvbilzerian74389 ай бұрын
Angular video potadhuku nandri akka
@vigneshkuttyvicky80279 ай бұрын
Thank you sister
@virutchamtechs97006 ай бұрын
Welcome
@saleembasha90249 ай бұрын
Thank you so much very nice explanation
@ssathyan-i5v10 ай бұрын
Hey , really good explain to all topic .... All the best
@virutchamtechs970010 ай бұрын
Thanks
@virutchamtechs970010 ай бұрын
Thanks
@NGNWeb11 ай бұрын
Super, Pls upload the next video
@virutchamtechs970011 ай бұрын
Sure soon I will
@Yuvinaa82811 ай бұрын
nice and thank you for ur presendation
@vigneshwaran.m3674 Жыл бұрын
akka one request neega video panum podhu andha sample code reference la poduga..
@virutchamtechs970011 ай бұрын
Sample reference code will be in comment section i pinned there please check kindly
@sangeethas378111 ай бұрын
Please check in description of video if code is not in comment section it will be in description
@vigneshwaran.m3674 Жыл бұрын
neenga pana andha child compennets theliva konjam explain panuga akka....atleast aathula full code aavathu comment la poduga akka
@virutchamtechs97006 ай бұрын
Code comments erukum Nala check panni parunga. Video correct ah follow Pannu kandipa work agum once again try panni paruga
@vigneshwaran.m3674 Жыл бұрын
akka no error but aathu output yedhuvum print aagala..
@virutchamtechs97006 ай бұрын
Use console and check it
@vigneshwaran.m3674 Жыл бұрын
1. If 'app-student-profile' is an Angular component and it has 'message' input, then verify that it is part of this module. 2. If 'app-student-profile' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. 3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. 1 <app-student-profile [message]="messageData"> </app-student-profile> ~~~~~~~~~~~~~~~~~~~~~~~ src/app/app.component.ts:6:16 6 templateUrl: './app.component.html', ~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component AppComponent. × Failed to compile.
@vigneshwaran.m3674 Жыл бұрын
Property 'blue' does not exist on type 'AppComponent'. akka color single style binding la varala
@virutchamtechs9700 Жыл бұрын
Spelling caps yellam correct check panni paruga
@RaJkUmAr-Sps Жыл бұрын
Thank you very much madam I could not correct this error for 2 days.. I understood after watching this video