Founder Of Geekstrick. Full-Time Software Developer, Expertise in Frontend Development. Conversant with - Angular, React, NodeJS, and MongoDB, MySQL, Postgres,HTML+CSS+JS, CypressIO.
This tutorial will see how we can Schedule A Cron Job In NodeJS Using the node-cron module. What is a cron job? A cron job is the event schedular that runs a job as per the given time interval. So it executes a file linked which is linked to that particular job, it runs the […]
An async pipe is a way to display the value of an Observable in an Angular template. If the Observable emits a new value, the value displayed in the template will automatically update. And when you destroy the component, the Observable will automatically be unsubscribed for you. Maybe this will help you: https://angular-university.io/lesson/angular-beginners-async-pipe
In this tutorial, we will see how Angular 10 Secure Routes Using AuthGuard Based On User Roles. Securing a route based on the token and AuthInterceptor for API is ok but also we can secure the routes based on what roles does the user has. You may have seen much application that shows an error […]
Instade of NgModelChange you can use the valueChange then you can handle whether to emit event or not on value change by passing emitEvent in setValue() if (save) { this.workOrderForm.get(‘productID’).setValue(newProduct.ID); // some more functionality } else { this.workOrderForm.get(‘productID’).setValue(oldProductID, {emitEvent: false}); } and in HTML <mat-select formControlName=’productID’ (valueChange)=’setNewProduct($event)’> … </mat-select>
Deno v1.5.0 New Version Released has released today. This release will contain some new features, lots of bug fixes, and many feature stabilizations. Deno v1.5.0 up-gradation If the deno is already installed you can use the basic command to upgrade deno upgrade. incase if you are new, you can install it from the below options. […]
Yes it was possible then and now also in the latest version using rxjs/operators … private records$: Observables<any>; … public getPart(id: any): Observable<any> { if(!this.records$) { this.records$ = this.http .get(`${this.baseUrl}${id}`) .pipe(map((res: any) => res.data), shareReplay(1)); } return this.records$ // reply the last result for all new subscribers } Just pipe the stream through shareReplay operator. […]
In this tutorial, we will see how can we achieve Real-Time Notification With Socket.io, Angular 10, and NodeJS. With WebSocket, we are allowed for full-duplex communication between a server and clients. WebSocket with socket.io The WebSocket goes beyond the typical HTTP request/response paradigm. With WebSockets, the server and client can send data without initiating a […]
Create React App v4.0.0 release a major update with several new features, including support for Fast Refresh! The New Version Includes New Features and supports are list below: Create React App v4 Highlights Fast Refresh React 17 support includes the new JSX transform TypeScript 4 support New ESLint 7 Rules : New Jest and React […]
In this tutorial, we will see what is the Best Way to Convert Angular 10 to Desktop App Using ElectronJS. Other than the PWA (Progressive Web App) we can also convert the angular app to an actual desktop app using the ElectronJS library. Angular 10 to Desktop App Using ElectronJS Using Electron we can easily […]
NodeJS v15 updated with a new major release of npm. npm 7 comes with many new features – Feature Including npm workspaces and a new package-lock.json format. npm 7 also includes yarn.lock file support. One of the big changes in npm 7 is that peer dependencies are now installed by default. NPM News: New Release […]